Validate Dialogue
beatra.speech.validate_dialogueCheck a multi-speaker dialogue request before paying for it: verify voice eligibility (supports_dialogue=true) and cloned-voice limits, parse turn markup, list warnings, count weighted characters, estimate duration, and return the credit price. This call does not create a task, charge credits, or call the speech engine.
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>"
},
"name": "beatra.speech.validate_dialogue"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Optional deterministic sampling seed (0 to 4294967295) | |
| model | No | Dialogue synthesis 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 | Optional provider-specific options under model_options.elevenlabs | |
| 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 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| model | No | ||
| valid | No | ||
| currency | No | ||
| warnings | No | Non-blocking advisories: markup that was corrected or skipped (markup_adjusted), markup the model does not perform (markup_degraded), controls the model ignores (option_ignored), and voices scheduled for retirement (voice_retiring). | |
| characters | No | ||
| turn_count | No | ||
| cloned_voices | No | ||
| unique_voices | No | ||
| raw_characters | No | ||
| estimated_credits | No | ||
| compiled_characters | No | ||
| estimated_duration_seconds | No |