Replace audio
replace_audioReplace a video's audio track with another file, such as music or a voiceover. The result ends with the shorter input 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.
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": {
"input_path": "<input_path>",
"audio_path": "<audio_path>"
},
"name": "replace_audio"
}
}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 |