Replace audio
replace_audioReplace a video's existing audio with a new audio file, such as background music or voiceover. The output length matches the shorter of video or audio unless looping is enabled.
Instructions
Replace a video's audio track with a different audio file (e.g. background music or a voiceover). The output ends when the shorter of the two ends, unless loop_audio is set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| audio_path | Yes | Path to the new audio file | |
| input_path | Yes | Path to the source video | |
| loop_audio | No | Loop the audio to cover the whole video (default false) | |
| output_path | No | Where to write the result |