Text to speech
text_to_speechConvert text to spoken audio with a VoiceHue voice. Returns the audio (MP3 by default, or WAV) and a one-line summary with the voice, number of characters and duration. Up to 3,000 characters per call. Use list_voices first to get a valid voice id.
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>",
"voice": "<voice>"
},
"name": "text_to_speech"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to speak. | |
| speed | No | Speaking speed, 0.5 to 2. | |
| voice | Yes | A voice id from list_voices. | |
| format | No | Audio format. MP3 is the default. | mp3 |