Synthesize a multi-speaker dialogue
Synthesizes an ordered list of turns (1–50), each with its own voice and emotion, into a single concatenated WAV. Tokens are deducted upfront, billed by the submitted character count (minimum 50, × the AI surcharge only when you opt in with aiRefine: true), and refunded if synthesis fails. With aiRefine: true the dialogue is moderated and each turn is pronunciation-normalized (formulas, acronyms, mixed English), billed with the surcharge; by default (false) turns are synthesized as provided — no content check, no normalization, no surcharge. Pass engine ("v3" default, "v4" premium — billed at its own multiplier) to choose the TTS engine; every turn's voice must belong to it. Returns a presigned audioUrl.
Request body
Example request
{
"turns": [
{
"speaker": "Host",
"voiceId": "Ngọc Lan",
"text": "Xin chào, hôm nay bạn thế nào?",
"emotion": "natural"
}
],
"pauseBetweenTurnsMs": 500,
"temperature": 1,
"engine": "v3"
}Response
The concatenated dialogue, as a presigned WAV URL.
Example response
{
"success": true,
"turnsCount": 4,
"speakers": [
"Host",
"Guest"
],
"audioUrl": "https://s3.amazonaws.com/bucket/dialogue/job.wav?X-Amz-Expires=3600&...",
"audioUrlExpiresIn": 3600,
"duration": 12.4,
"tokenCost": 120
}Changes
No recorded changes to this endpoint across all 1 revision of this API.