text_to_speech
Converts text into spoken audio using ElevenLabs. Creates an MP3 file and returns its file path for immediate use.
Instructions
Convert text to speech using ElevenLabs. Saves the audio as an MP3 file and returns the file path.
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 |
|---|---|---|---|
| text | Yes | The text to convert to speech | |
| model_id | No | Model ID (default: eleven_multilingual_v2) | |
| voice_id | No | Voice ID to use (default: Rachel — 21m00Tcm4TlvDq8ikWAM) | |
| stability | No | Voice stability 0-1 (default: 0.5) | |
| output_filename | No | Output filename (default: output_<timestamp>.mp3) | |
| similarity_boost | No | Voice similarity boost 0-1 (default: 0.75) |