text_to_speech
Convert text to speech audio in MP3 or WAV and receive it base64 encoded, ready for playback or storage in your app.
Instructions
Convert text to speech audio. Returns base64 encoded audio.
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 | Text to convert to speech | |
| voice | No | Voice name (e.g. pt-BR-AntonioNeural, en-US-JennyNeural) | pt-BR-AntonioNeural |
| format | No | Audio format: mp3 or wav | mp3 |