text_to_speech
Turn written text into spoken MP3 audio using ElevenLabs. Generate speech and save it to a file or play it directly.
Instructions
Convert text to speech with ElevenLabs, save it as an MP3, and (optionally) play it.
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": "text_to_speech"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| play | No | Play the audio after generating it. Defaults to true. | |
| text | Yes | The text to speak. | |
| model_id | No | Model id, e.g. eleven_multilingual_v2 or eleven_turbo_v2_5. | |
| voice_id | No | ElevenLabs voice id. Defaults to the configured voice. | |
| output_path | No | Where to write the MP3. Defaults to the OS temp dir. |