Speak text
elevenlabs_text_to_speechUse this when the user asks to hear text spoken aloud or wants a voiceover for a short script. Returns MP3 audio as a download URL by default, with the voice, model and character count. The URL carries a signed access query param, so OAuth hosts can fetch it without Bearer. Text may be at most 1000 characters; split longer copy across calls and pass previousText or nextText so each part flows. Set audioAs to base64 only when the client cannot fetch a URL. Runs on SingleBrain's account: from 1 credit a call.
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": {
"voiceId": "<voiceId>",
"text": "<text>"
},
"name": "elevenlabs_text_to_speech"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Optional seed from 0 to 4294967295 for a repeatable take | |
| text | Yes | The words to speak, at most 1000 characters | |
| speed | No | Speech speed from 0.25 to 4; 1 is normal | |
| style | No | Style exaggeration from 0 to 1 | |
| audioAs | No | Return audioUrl (default) or inline audioBase64 | |
| modelId | No | One of: eleven_flash_v2_5, eleven_turbo_v2_5, eleven_multilingual_v2, eleven_monolingual_v1, eleven_v3, eleven_v4, eleven_v4_turbo, defaults to eleven_flash_v2_5 | |
| voiceId | Yes | Voice id from elevenlabs_list_voices | |
| nextText | No | Words spoken after this chunk, for continuity when splitting a script | |
| stability | No | Voice stability from 0 to 1 | |
| outputFormat | No | ElevenLabs output_format, like mp3_22050_32 or mp3_44100_128 | |
| previousText | No | Words spoken before this chunk, for continuity when splitting a script | |
| similarityBoost | No | Similarity boost from 0 to 1 | |
| useSpeakerBoost | No | Boost similarity to the original speaker |