set_publisher_video_audio
Put an uploaded audio clip on a video asset's own timeline track, so music or narration can be re-levelled in the AR editor instead of being baked into the uploaded file. Re-renders the asset as a new active revision and keeps the previous cut as a revision. Upload the clip with upload_publisher_audio first. Note the rendered file is always a flat mixdown — AR has no output with separate streams; the track lives in the editor's saved timeline.
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": {
"publisher_pid": "<publisher_pid>",
"asset_id": "<asset_id>",
"audio_media_url": "<audio_media_url>",
"video_duration_s": "<video_duration_s>"
},
"name": "set_publisher_video_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset_id | Yes | Video asset id, e.g. from upload_publisher_video. | |
| publisher_pid | Yes | Project id from list_projects or create_project. | |
| audio_fade_in_s | No | Fade in, seconds. Default 0. | |
| audio_media_url | Yes | media_url returned by upload_publisher_audio. | |
| audio_duration_s | No | Length of the audio clip in seconds, when it differs from the video. Defaults to the video length. | |
| audio_fade_out_s | No | Fade out, seconds. Default 0. | |
| audio_position_s | No | Where the clip starts on the video's timeline, in seconds. Default 0. | |
| source_media_url | No | Optional. The cut to re-render from: the one before this audio was mixed in. Leave it out and AR resolves and records it. Set it only when you know better, e.g. re-pointing an asset at a different silent master. | |
| video_duration_s | Yes | Length of the video in seconds. The editor needs it to lay out the timeline. | |
| audio_clip_volume | No | Clip level, 0-200 percent, 100 being unity. Default 100. A music bed under speech usually wants 60-80. | |
| audio_track_label | No | Track name shown in the editor, e.g. 'Music' or 'Voiceover'. Default 'Music'. | |
| video_base_volume | No | Level of the video's own sound, 0-1. Default 1.0. NOTE: exactly 1.0 makes ffmpeg's amix divide by the input count, so video and music both land about 6 dB down; any other value pins both to the levels asked for. Nothing limits the sum, so leave headroom (e.g. 0.75 with a clip at 70) rather than summing two loud sources. | |
| notification_message | No | Short user-facing sentence for this action if the follow-up reply fails. Plain text only; do not mention template syntax or variable names. |