audio

Synthesize multi-speaker dialogue

Changed on

Creates an asynchronous native multi-speaker dialogue synthesis task (elevenlabs-v4-turbo, elevenlabs-v4, or auto, 2 to 50 turns, up to 10 unique voices including up to 4 ready cloned voices, up to 2,000 characters across all turns) using voices with supports_dialogue=true from GET /v1/voices. Charged per 1,000 Beatra weighted characters across all turns. When the task succeeds, output contains {type: "text_to_dialogue", model, audio, characters, turn_count, unique_voices, segments, subtitles}.

post/v1/audio/speech/dialogue

Request

  • Base URL
    https://api.beatra.ai (the document declares no server; this is the origin it was published from)
  • Auth
    none declared. Required headers: Idempotency-Key

Headers

x-request-id, string nullable
Idempotency-Key, string required
authorization, string nullable

Request body

DialogueCreateRequest required

Async multi-speaker dialogue synthesis Task creation request.

model, 'auto' | 'elevenlabs-v4-turbo' | 'elevenlabs-v4'

Dialogue synthesis model ('auto', 'elevenlabs-v4-turbo', or 'elevenlabs-v4')

turns, DialogueTurnInput[] required

Ordered list of 2 to 50 dialogue turns (up to 10 unique voices, at most 4 cloned voices)

language, string nullable

Optional BCP-47 language tag or 'auto'

format, 'mp3' | 'wav' | 'opus' | 'pcm'

Output audio container format (mp3, wav, opus, or pcm)

sample_rate, 8000 | 16000 | 22050 | 24000 | 32000 | 44100 nullable

Optional output sample rate in Hz for mp3, wav, or pcm (omit for opus)

subtitle_enable, boolean

Generate unified JSON, SRT, and VTT speaker-attributed subtitles alongside the audio

previous_text, string nullable

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.

next_text, string nullable

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, number nullable

Optional dialogue voice stability from 0.0 (expressive) to 1.0 (consistent)

similarity_boost, number nullable

Optional speaker similarity adherence from 0.0 to 1.0

seed, integer nullable

Optional deterministic sampling seed (0 to 4294967295)

model_options, object nullable

Per-model-family passthrough options; opaque to the platform, validated per model

metadata, object nullable

Caller-supplied metadata; ≤16 keys, key ≤64 chars, value ≤512 chars

callback_url, string nullable

HTTPS URL beatra will POST the final Task envelope to when the Task reaches a terminal state

callback_signing_key_id, string nullable

Optional standalone callback signing key. Omit for unsigned callback delivery; requires callback_url when provided.

Response

Task accepted

TaskEnvelope required

Standard Task envelope.

Returned by every async-creation endpoint, GET /v1/tasks/{id}, and the body of customer callback POSTs.

object, 'task'
task_id, string required
status, 'queued' | 'running' | 'succeeded' | 'failed' | 'canceled' required
capability, string required
workload_type, 'model' | 'social_operation'
model, string nullable

Caller-requested model verbatim (may be 'auto'). Null for social_operation tasks.

resolved_model, string nullable

Actual model that ran (null until execution starts; equals model for explicit-model calls)

model_selection_reason, unknown
social, SocialTaskIdentity nullable
metadata, object nullable
input, object nullable
progress, AppApiV1SchemasCommonTaskProgress nullable
output, object nullable
warnings, TaskWarning[]
error, AppApiV1SchemasCommonTaskError nullable
usage, UsageObject nullable
billing, TaskBilling nullable
callback, TaskCallback nullable
created_at, string date-time required
started_at, string date-time nullable
deadline_at, string date-time nullable
completed_at, string date-time nullable
cancel_requested_at, string date-time nullable
links, TaskLinks required

Changes