neuralset.events.transforms.audio.ExtractAudioFromVideo

class neuralset.events.transforms.audio.ExtractAudioFromVideo(*, infra: Backend | None = None, overwrite: bool = False)[source][source]

Extract audio tracks from Video events and add them as separate Audio events.

This transform iterates over events of type “Video”, extracts the audio track, saves it as a .wav file (if it does not already exist), and adds a corresponding event of type “Audio” to the DataFrame.