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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"inputPath": "<inputPath>",
"outputPath": "<outputPath>"
},
"name": "extract_audio"
}
}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'). |