Generate speech
generate_speechTurn text into speech with the selected project key. Unless the user names a model, pick from list_models type=tts featured=true, the curated current ones; a model's params lists voices and formats. The audio is saved to the project's files: the result carries audio.file_id and audio.url, a download link valid for 1 hour. The file stays until it is deleted on the platform's Files page or with DELETE /v3/files/{id}. Normal costs and policy checks apply. Requires runtime:call.
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": {
"id": "<id>",
"input": "<input>",
"model": "<model>",
"uuid": "<uuid>"
},
"name": "generate_speech"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Runtime API key ID in this project; its secret is never returned | |
| uuid | Yes | Project UUID in the authorized organization | |
| input | Yes | The text to speak. | |
| model | Yes | Speech model id from list_models type=tts (featured=true for the curated ones). | |
| speed | No | Speaking rate, 1 is normal. | |
| voice | No | A voice the model lists. | |
| format | No | Audio format such as mp3 (default) or wav. | |
| parameters | No | Provider settings, forwarded verbatim. Each model lists the keys it takes in params.tts.parameters (list_models detail=full). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| audio | No | ||
| model | No | ||
| usage | No |