Actions8
- Speech Actions
- Audio Actions
- Voices Actions
- Account Actions
Speech → Dialogue
AI-generatedSummary
Generate multi-speaker dialogue using a TTS model and a list of lines with associated voice IDs.
Inputs
- dialogueModel (required) — The TTS model to use for the dialogue (Standard, Pro, or Max).
- lines (required) — A collection of dialogue lines. Each line contains a 'text' (string) and a 'voice' (string) specifying the voice ID for that line.
Output shape
A single record containing the generated dialogue JSON.
The exact shape of the returned JSON depends on the LeanVox API response for the dialogue endpoint.
Examples
Example 1: Create a dialogue with two characters using the Pro model.
Model: Pro. Lines: [{text: 'Hello there, how are you?', voice: 'charA'}, {text: 'I am doing well, thanks.', voice: 'charB'}]