Extract audio
extract_audioExtract the audio track from a video and save it as MP3, AAC, WAV, FLAC, or Opus, with optional bitrate and overwrite settings.
Instructions
Extract the audio track from a video into an audio file (mp3/aac/wav/flac/opus). The format is chosen by the format field.
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": {
"input": "<input>",
"output": "<output>"
},
"name": "extract_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Path to the source video. | |
| format | No | Audio output format. | mp3 |
| output | Yes | Path for the extracted audio file. | |
| bitrate | No | Audio bitrate for lossy formats, e.g. "192k". | |
| overwrite | No | Overwrite the output file if it already exists. |