speak
Convert text of any length into speech using a saved or cloned voice, save the audio file, and return its path and exact duration.
Instructions
Turn text of any length into speech in a saved voice (voice_id) or a voice cloned from a public clip (reference_audio_url + its exact words in reference_text, billed at the cheaper 1x rate). Returns the saved file path and its exact duration in seconds. format: mp3, wav, flac, opus, aac. model: 'expressive' (default) or 'standard'. speed: 0.25-4.
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": "speak"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| model | No | expressive | |
| speed | No | ||
| format | No | mp3 | |
| voice_id | No | ||
| output_path | No | ||
| reference_text | No | ||
| reference_audio_url | No |