Turn text into speech
speech_synthesizeAn MP3 of the text read aloud by one of the voices (speech_list_voices), saved in the file store with a download link. Up to 5,000 characters a call; it reads the language the text is written in. The file carries a machine-readable mark that the speech is AI-generated (ID3: AIGenerated, IPTC digital source type). Costs $0.07 per 1,000 characters, rounded up (at most $0.35 a call); nothing if it fails.
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": "speech_synthesize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | File name for the MP3. | |
| text | Yes | ||
| voice | No | A voice from speech_list_voices; the first one when left out. |