trim_audio
Trim an audio file to a specific time range by specifying start and end times or a duration, then save the extracted segment to a new file.
Instructions
Trim audio file to a specific time range
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>",
"start_time": "<start_time>"
},
"name": "trim_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duration | No | Duration to extract (format: HH:MM:SS or seconds) | |
| end_time | No | End time (format: HH:MM:SS or seconds). Used if duration is not specified | |
| input_path | Yes | Path to the input audio file | |
| start_time | Yes | Start time (format: HH:MM:SS or seconds, e.g., '00:01:30' or '90') | |
| output_path | Yes | Path for the output trimmed audio file |