extract_audio
Extract an audio track from a video into a standalone audio file, with presets for 16kHz mono WAV speech recognition, MP3, AAC, FLAC, or stream copy.
Instructions
Extract an audio track from a video file into a standalone audio file. Supports the 'whisper_wav' preset (16kHz mono WAV) for speech recognition models, plus MP3, AAC, FLAC, and stream copy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Audio format: 'whisper_wav' (16kHz mono WAV for Whisper), 'mp3', 'aac', 'flac', or 'copy' (extract without re-encoding). Default: 'mp3'. | |
| bitrate | No | Target audio bitrate for MP3 or AAC (e.g. '128k', '192k', '320k'). | |
| inputPath | Yes | Path to the source video or audio file. | |
| outputPath | Yes | Destination path for the output audio file (e.g. './extracted.wav' or './audio.mp3'). |