Generate speech
generate_speechText-to-speech with word timestamps. SYNC: returns an MP3 audioUrl, an r2Key (usable as a source in other tools) and words [{text, start, end}] for captions. voiceId: one of your voices (list_voices) or a premade one (list_voices scope 'premade'). Models: eleven_v4, eleven_v4_turbo, eleven_multilingual_v2 (default eleven_v4; inline tags like [laughs] are performed and left out of the word timings). Max 5000 characters. No speed control: shorten the script to make it shorter. SPENDS 1 credit per 500 characters (minimum 1).
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>",
"voiceId": "<voiceId>"
},
"name": "generate_speech"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| text | Yes | ||
| style | No | ||
| modelId | No | ||
| voiceId | Yes | Your voice id / ElevenLabs id, or a premade alias | |
| stability | No | ||
| languageCode | No | ISO 639-1 or 639-3 language code, e.g. 'de' or 'deu' | |
| similarityBoost | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| r2Key | No | ||
| words | No | ||
| audioUrl | No | ||
| creditsUsed | No | ||
| durationSeconds | No |