merge_audio_files
Combine two or more audio files into a single file using plain concatenation, silence gaps, or crossfade. Output format is auto-detected or manually specified.
Instructions
Merge two or more local audio files into a single file using ffmpeg. Supports plain concatenation, silence-gap insertion between clips (gap_ms), or crossfade blending (crossfade_ms). gap_ms and crossfade_ms are mutually exclusive. Output format is auto-detected from the inputs (all-same-ext -> that ext; mixed -> mp3) or overridden via output_format. Use this to stitch multiple text_to_speech outputs into one deliverable.
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_paths": "<input_paths>"
},
"name": "merge_audio_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gap_ms | No | ||
| input_paths | Yes | ||
| crossfade_ms | No | ||
| output_format | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |