text_to_dialogue
Generate multi-speaker dialogue audio from a list of turns with voice IDs and text. Saves the audio file and returns its path.
Instructions
Generate multi-speaker dialogue audio from a list of turns.
Args:
dialogue: list of turns, each {"voice_id": "...", "text": "..."}.
model_id: dialogue model id (defaults to "eleven_v3" style dialogue model
when omitted, letting the API choose).
output_format: audio output format.
output_filename: optional output file name.
Returns the absolute path of the saved audio file.
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": {
"dialogue": "<dialogue>"
},
"name": "text_to_dialogue"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dialogue | Yes | ||
| model_id | No | ||
| output_format | No | mp3_44100_128 | |
| output_filename | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |