Synthesize Dialogue
beatra.speech.synthesize_dialogueSynthesize a multi-speaker dialogue from 2 to 50 ordered turns in one audio take (up to 10 unique voices including up to 4 ready cloned voices, up to 2,000 characters total). This billable call consumes Beatra credits and creates an asynchronous task. Submit exactly once, then poll with beatra.tasks.get. Reuse the same client_request_id only for an identical retry. Requires voices with capabilities.supports_dialogue=true from beatra.voices.list. Each turn accepts speech markup ({laugh}, {sigh}, {whisper}, {emotion ...}). beatra.speech.validate_dialogue checks the turns and quotes credits without charging.
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": {
"turns": "<turns>",
"client_request_id": "<client_request_id>"
},
"name": "beatra.speech.synthesize_dialogue"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Optional deterministic sampling seed (0 to 4294967295) | |
| model | No | Omit unless the user requests a model ('auto', 'elevenlabs-v4-turbo', or 'elevenlabs-v4'). | auto |
| turns | Yes | Ordered list of 2 to 50 dialogue turns (up to 10 unique voices, at most 4 cloned voices) | |
| format | No | Output audio container format (mp3, wav, opus, or pcm) | mp3 |
| language | No | Optional BCP-47 language tag or 'auto' | |
| next_text | No | Optional text that comes right after this clip, for example the next line of a dialogue or the next paragraph, so separate calls keep a continuous tone. It is never spoken and never billed; any length is accepted and only its start is used (next_text_head_characters on the model card). Models and voices that do not use it ignore it with an option_ignored warning. | |
| stability | No | Optional dialogue voice stability from 0.0 (expressive) to 1.0 (consistent) | |
| sample_rate | No | Optional output sample rate in Hz for mp3, wav, or pcm (omit for opus) | |
| model_options | No | Per-model-family passthrough options; opaque to the platform, validated per model | |
| previous_text | No | Optional text that comes right before this clip, for example the previous line of a dialogue or the previous paragraph, so separate calls keep a continuous tone. It is never spoken and never billed; any length is accepted and only its end is used (previous_text_tail_characters on the model card). Models and voices that do not use it ignore it with an option_ignored warning. | |
| subtitle_enable | No | Generate unified JSON, SRT, and VTT speaker-attributed subtitles alongside the audio | |
| similarity_boost | No | Optional speaker similarity adherence from 0.0 to 1.0 | |
| client_request_id | Yes | Stable retry identity for this billable operation. Reuse only for the exact same generation arguments. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | No | ||
| error | No | ||
| usage | No | ||
| status | No | ||
| billing | No | ||
| task_id | No | ||
| terminal | No | ||
| artifacts | No | ||
| resolved_model | No |