Mix audio tracks
mix_audioMix background music or effects under a primary voice track with automatic ducking and per-track gain/start offsets. Preserves video picture when the primary input is a video.
Instructions
Mix background music or effects under a primary voice track.
Set 'duck' on a track to have it automatically drop in level whenever the voice track is loud, which is what makes music sit under narration without manual level automation. Per-track gain and start offsets are applied before the mix.
If the primary input is a video, its picture is carried through untouched.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| encode | No | ||
| tracks | Yes | Additional tracks to mix in. | |
| duration | No | 'first' ends with the primary track, 'longest' with the longest input. | first |
| voice_path | Yes | The primary track — usually dialogue, or a video whose audio leads the mix. | |
| output_path | No | ||
| keep_video_from_voice | No | If the primary input is a video, carry its picture through unchanged. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| job_id | Yes | ||
| status | No | queued | |
| message | No | Job queued. Poll job_status for progress, then job_result. |