Duck music under voice
duck_audioWrites volume keyframes that lower music clips beneath voice clips, adding attack and release ramps so dialogue stays audible in Premiere Pro.
Instructions
Automatic ducking: lower the "music" clips by duck_db wherever a "voice" clip plays, with an attack ramp before and a release ramp after each voice range. Voice ranges come from the voice clips' timeline positions (start..end), merged when closer than merge_gap. Writes Volume > Level keyframes on each overlapping music clip (existing keyframes inside the ducked spans are replaced) relative to the music's current level. Returns the voice ranges and, per music clip, the keyframes written (sequence time, dB). Voice and music may be given as clip ids and/or audio track indices.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "duck_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attack | No | Ramp-down time before each voice range, in seconds. Default 0.25. | |
| duck_db | No | How much to lower the music, in dB (negative). Default -12. | |
| release | No | Ramp-up time after each voice range, in seconds. Default 0.5. | |
| merge_gap | No | Voice ranges closer than this (seconds) are merged so the music does not pump. Default 1; never less than attack + release. | |
| sequence_id | No | Stable sequence id (from list_sequences). Omit to use the active sequence. | |
| sequence_name | No | Sequence name; used only when sequence_id is not given. | |
| music_clip_ids | No | Ids of the music (background) audio clips to lower. | |
| voice_clip_ids | No | Ids of the voice (foreground) audio clips. | |
| music_track_indices | No | 0-based audio tracks whose clips are all music. | |
| voice_track_indices | No | 0-based audio tracks whose clips are all voice. |