Text to speech
text_to_speechConvert one text into one MP3 with one voice. Use for narration, voiceover scripts, articles, lessons, announcements or any audio whose length can follow the speech. Consumes credits (characters x voice rate). Returns job_id, status and audio_url when ready.
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 | Text to read. Plain text; long text is split and merged automatically. | |
| pitch | No | Only some providers support pitch. | |
| voice | Yes | Voice token (v1:...). | |
| wait_seconds | No | Seconds the server waits for the audio before returning. If the job is still PENDING, call get_job_status later with the returned job_id. |