text_to_speech
Natural voice from text, 24 kHz. 21 voices: English US/UK, Spanish, French, Italian, Portuguese, Hindi, Japanese, Chinese. Output: MP3, OGG or WAV. Up to 5 000 chars per call; billed per started 1 000 chars. Cost €0.015 per 1 000 chars, charged to the API key in Authorization: Bearer. Parameters — text: string, up to 5 000 chars; voice: af_heart (default) | af_bella | am_adam | bf_emma | bm_george | ef_dora | ff_siwis | if_sara | pf_dora | jf_alpha | zf_xiaoxiao | …; speed: 0.5–2.0 (default 1.0); format: mp3 | ogg | wav (default mp3).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "text_to_speech"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| speed | No | ||
| voice | No | ||
| format | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |