synthesize_audio
Generate billed localized TTS (and optional dubbed video). Hosted mode returns download URLs.
Args:
language: Target language name (e.g. "French").
language_code: Target language code (e.g. "fr").
voice_id: Voice id from `list_voices`.
segments: JSON array of {text, start_ms, end_ms, original?} objects.
output_path: Output filename hint (hosted) or WAV path (stdio).
keep_same_length: Stretch/compress speech to source timings.
keep_background_music: Mix transcribed music bed when stem_id is set.
stem_id: Optional bed stem from `transcribe_audio`.
source_duration_ms: Original duration.
source_transcript: Optional original transcript.
video_id: Optional id from transcribe/register to mux MP4.
video_output_path: Optional path for dubbed MP4 when video_id 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": {
"language": "<language>",
"language_code": "<language_code>",
"voice_id": "<voice_id>",
"segments": "<segments>"
},
"name": "synthesize_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stem_id | No | Optional bed stem from `transcribe_audio`. | |
| language | Yes | Target language name (e.g. "French"). | |
| segments | Yes | JSON array of {text, start_ms, end_ms, original?} objects. | |
| video_id | No | Optional id from transcribe/register to mux MP4. | |
| voice_id | Yes | Voice id from `list_voices`. | |
| output_path | No | Output filename hint (hosted) or WAV path (stdio). | dubbed.wav |
| language_code | Yes | Target language code (e.g. "fr"). | |
| keep_same_length | No | Stretch/compress speech to source timings. | |
| source_transcript | No | Optional original transcript. | |
| video_output_path | No | Optional path for dubbed MP4 when video_id is set. | |
| source_duration_ms | No | Original duration. | |
| keep_background_music | No | Mix transcribed music bed when stem_id is set. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |