capture_audio
Extract a video's audio track for speech or music models, choosing stream, sample rate, channels, format, and optional time range.
Instructions
Export the audio track of a video for separate speech or music models, choosing the stream, sample rate, channels and format. With start and end, add timeline_offset to a time in the audio to get a time in the video.
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": {
"source": "<source>"
},
"name": "capture_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End of the range to process: seconds, MM:SS or HH:MM:SS | |
| async | No | Return a job immediately instead of waiting for the result | |
| start | No | Start of the range to process: seconds, MM:SS or HH:MM:SS | |
| format | No | Output format | wav |
| source | Yes | Video file path or URL | |
| stream | No | Which audio stream: 0 is the first. See audio_streams in metadata | |
| channels | No | 1 for mono, 2 for stereo. Default: as in the source | |
| sample_rate | No | Sample rate in Hz, e.g. 16000 for speech models. Default: source rate |