extract_audio
Extract the audio track from a video file and save it as a separate audio file, with optional control over the output codec and bitrate for format conversion needs.
Instructions
Extract audio track from a video file
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_path": "<input_path>",
"output_path": "<output_path>"
},
"name": "extract_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bitrate | No | Audio bitrate (e.g., 192k, 320k) | |
| input_path | Yes | Path to the input video file | |
| audio_codec | No | Audio codec (e.g., mp3, aac, pcm_s16le). If not specified, determined by output extension | |
| output_path | Yes | Path for the output audio file (e.g., output.mp3, output.wav) |