Generate speech
speakText to speech: turn any text into spoken audio the user can play or download, such as a voiceover for a video, a narration, a podcast intro or an article read aloud. Generate speech from text in one of the user's VoiceLabs voice profiles. Returns a generationId with status "generating"; poll get_generation with that id to retrieve the audio URL once it completes. Pass profileId or profileName to choose the voice.
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 | The text to speak. | |
| language | No | ISO language code (defaults to the profile/engine default). | |
| profileId | No | Voice profile id (takes precedence). | |
| profileName | No | Voice profile name. | |
| temperature | No | Sampling temperature for this take, 0.3 to 1: lower is steadier, higher is livelier. Omit it to use the voice's own default. Only voices on the chatterbox and chatterbox_turbo engines accept one; any other voice refuses the call rather than ignoring the value. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| profile | Yes | ||
| audioUrl | Yes | ||
| generationId | Yes |