Trim local audio
abox_audio_trimTrim audio by keeping or cutting exact time ranges from WAV, MP3, or AAC-LC files, with optional fade joins to avoid clicks.
Instructions
Keep ordered time ranges (including repeats) or cut marked ranges from admitted WAV, MP3 Layer III or AAC-LC audio. Fade joins by 5 ms by default; set fade_ms:0 for no fades. Times must fit the actual decoded audio, which can omit bounded priming samples. Source cut mode omits gaps of at most 1 ms. Writes a new WAV and verifies every encoded sample. Requires a local browser.
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>",
"ranges": "<ranges>"
},
"name": "abox_audio_trim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bits | No | ||
| mode | No | keep | |
| ranges | Yes | ||
| fade_ms | No | ||
| input_path | Yes | Absolute local filesystem path. URLs and network shares are refused. | |
| output_path | Yes | Absolute local filesystem path. URLs and network shares are refused. |