ffmpeg__mix_audio_tracks
Combine voice and background music into a single audio file, with adjustable volume and duration settings.
Instructions
Mix two audio tracks (voice and background music) into a single output using the amix filter. @remarks Typical use: normalize voice first, then mix with BGM using a low bgm_volume (0.2–0.3). Returns JSON in stdout with output_path and applied volume parameters. @param voice_path Primary audio track path (for example voice or narration). @param bgm_path Background music track path. @param output_path Destination mixed audio path. @param voice_volume Volume multiplier for the primary track. Default 1.0. @param bgm_volume Volume multiplier for the background music track. Default 0.3. @param duration Output duration strategy: shortest (default), longest, or first. @param __mcp_response_mode Optional response mode: content (default) or structuredContent.
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": {
"voice_path": "<voice_path>",
"bgm_path": "<bgm_path>",
"output_path": "<output_path>"
},
"name": "ffmpeg__mix_audio_tracks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bgm_path | Yes | ||
| duration | No | ||
| bgm_volume | No | ||
| voice_path | Yes | ||
| output_path | Yes | ||
| voice_volume | No | ||
| __mcp_response_mode | No | content |