Split audio
split_audioCuts MP3 or M4A audio into several new files at specified times without re-encoding and returns saved paths; the original file remains unchanged.
Instructions
Cut an MP3 or M4A into several new files at the given times, without re-encoding. Two cut points make three parts; points outside the track are ignored. Use trim_audio to keep a single clip. Returns the saved paths; the input is not changed.
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": {
"file": "<file>",
"at": "<at>"
},
"name": "split_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | Yes | Cut points, like ["1:30", "3:00"]. | |
| file | Yes | Path to the file (absolute, or relative to the working directory). | |
| output_dir | No | Folder for the parts. Defaults to the input’s folder. |