mix_music_into_video
Mix background music into a video's existing audio, using adaptive loudness to keep music below speech level, with optional ducking while talking.
Instructions
Lay a music bed under a video's existing speech/ambience audio.
Gain is ADAPTIVE by default: both tracks are loudness-measured and the
music sits music_below_speech_db LUFS below the speech (14 = clearly
audible but secondary; 18-20 = barely-there). duck=true adds a gentle
side-chain dip while someone talks. Pass music_gain_db only to force a
fixed gain. Music for speech ads is complementary, not the main event.
Video stream is copied untouched; inputs may be URLs.
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": {
"video": "<video>",
"music": "<music>",
"output_path": "<output_path>"
},
"name": "mix_music_into_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duck | No | ||
| music | Yes | ||
| video | Yes | ||
| output_path | Yes | ||
| music_gain_db | No | ||
| music_below_speech_db | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||