synthesize_audio_advanced
Synthesize multi-speaker audio/video with complete timing and review data.
Billed operation. segments is a native array with text, start_ms,
end_ms and optional original, speaker_id, voice_id, language_code and
review fields returned by translation. speaker_voices maps each
speaker_id to a preset or cloned voice_id. Pass stem_id to preserve
background music and video_id to produce MP4. Outputs are local files
(stdio) or expiring download URLs (hosted); no inline media blobs.
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": {
"language": "<language>",
"language_code": "<language_code>",
"voice_id": "<voice_id>",
"segments": "<segments>"
},
"name": "synthesize_audio_advanced"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stem_id | No | Background-music stem identifier returned by transcription; empty omits it. | |
| language | Yes | Target language for this operation, for example "French". | |
| segments | Yes | Non-empty array of translated segments with text, start_ms, end_ms and optional original, speaker_id, voice_id, language_code and review fields. | |
| video_id | No | Video identifier returned by registration/transcription; empty omits video assembly. | |
| voice_id | Yes | Voice identifier returned by list_voices or voice creation; reuse the exact identifier. | |
| output_path | No | Output filename/path in stdio, or filename for the temporary hosted download. Use the matching file extension. | dubbed.wav |
| language_code | Yes | Language code, for example "en" or "fr". Leave empty to use the operation default. | |
| speaker_voices | No | Optional mapping from transcript speaker_id to a preset or saved voice_id. | |
| speech_islands | No | Optional speech timing ranges using integer start_ms and end_ms from detailed transcription. | |
| keep_same_length | No | Whether synthesis should try to retain the original timing. | |
| source_transcript | No | Original transcript text for synthesis context; empty omits it. | |
| video_output_path | No | Optional output MP4 filename/path; empty derives it from the audio output filename. | |
| source_duration_ms | No | Actual processed source duration in milliseconds, from transcription. Zero leaves it unspecified. | |
| document_translation | No | Whether synthesis is for document-translation narration. | |
| enterprise_long_form | No | Request enterprise long-form processing only when allowed by get_audio_capabilities. | |
| keep_background_music | No | Whether to retain the original background music for the dubbing workflow. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||