Edit audio
edit_audioPrepare audio for videos and posts by joining, trimming, removing silence, normalizing loudness, fading, and converting formats locally with ffmpeg; writes a new file and keeps originals unchanged.
Instructions
Prepare audio for videos and posts, locally with ffmpeg: join several files in order, trim, remove long silences, normalize loudness (-14 LUFS for social video, -16 podcasts, -23 broadcast), fade in/out, and convert to any of the 19 formats. Video inputs contribute their sound. Writes a new file; never changes the originals. Free.
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": "edit_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Audio format: wav (default, lossless), mp3_<rate>_<kbps>, pcm_<rate> (16-bit WAV), ulaw_8000 / alaw_8000 (telephony), opus_48000_<kbps> (Ogg Opus). mp3, opus, ulaw and alaw need ffmpeg. | wav |
| channels | No | auto = mono only if every input is mono. | auto |
| trim_end | No | Keep audio up to this second (of the joined audio). | |
| trim_start | No | Keep audio from this second (of the joined audio). | |
| input_paths | Yes | Audio or video files, joined in this order. | |
| output_path | No | Where to save. Relative paths go in the output folder. | |
| loudness_lufs | No | Target loudness. -14 social, -16 podcast, -23 broadcast. | |
| remove_silence | No | Shorten silences longer than min_silence_seconds. | |
| fade_in_seconds | No | ||
| fade_out_seconds | No | ||
| min_silence_seconds | No | ||
| silence_threshold_db | No | Quieter than this counts as silence. |