Generate speech
generate_speechSpeak a line in a named voice and return a run id. Poll get_run_status for the audio URL — it also returns words, the start and end second of every word, and duration_seconds. Use those to cut to the voice or build word-accurate captions instead of running speech-to-text over audio you just made.
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": {
"text": "<text>",
"voice_id": "<voice_id>"
},
"name": "generate_speech"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The line to speak. Plain text. | |
| model | No | Omit for the default (eleven-turbo-v2.5). | |
| voice_id | Yes | Voice id from list_voices. |