Speak a line in a voice
generate_speechA line spoken in a voice, as an MP3, with the start and end of every word in seconds (output.words, a JSON file) for lip sync and captions. Costs credits: eleven-v4 1 per 50 characters, eleven-v3 1 per 50 characters. A character keeps its voice by voice id: give every line of one character the same voice. Voices (name: ElevenLabs' label): Eldrin (Crisp British baritone), Darian (Warm, grounded storyteller), Kaelen (Amateur warrior), Sawyer (Midnight storyteller), Wyatt (Seasoned mentor), Callum (Husky trickster), Baxter (Dry, calm Australian), Warren (Effortless and cool), Eddie (Natural and helpful), Caleb (Trusted guide), Lawrence (Bright and informative), Finley (Articulate anchor), Talia (Warm, soft guide), Florence (Atmospheric storyteller), Elara (Crisp professional narrator), Elowen (Upbeat modern narrator), Alicia (Polished global anchor), Maisie (Friendly, casual neighbour), Jade (Upbeat and natural); any ElevenLabs voice_id works too. eleven-v4 reads audio tags such as [whispering], [shouting], [laughs]. Waits about 45 s, then returns job_id for get_job.
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>"
},
"name": "generate_speech"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | What to say, up to 5,000 characters: "Hold the gate! The dragon is coming." | |
| model | No | eleven-v4 | |
| voice | No | A voice by name or id. Default Eldrin. | |
| language | No | ISO 639-1 code (en, de, ja), when it should not be guessed. | |
| stability | No | Lower is more expressive, higher steadier across lines (0.5 default). | |
| max_credits | No | ||
| wait_seconds | No | ||
| idempotency_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| error | No | ||
| output | No | ||
| status | No | ||
| credits | No |