Generate speech
generate_speechConvert text to speech with a VocalLab voice. Returns the generated audio inline, so you can play or save it without fetching anything — very long clips fall back to a download URL. Up to 2,000 characters per call (less on limited-access accounts; the error names the cap) — each call is one synthesis request; for longer scripts, split the text and call again. Costs points from your balance (API rate: 15 characters per second).
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": "generate_speech"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to speak (max 2,000 characters per request) | |
| model | No | Speech model (default v-studio: steerable, follows expression instructions, 200+ languages). v-flash: same 200+ languages, ~5x faster, 3/4 points, not steerable. v-pro: highest fidelity in major languages, supports temperature. v-lite: faster, half the points. See list_models. | |
| speed | No | Speaking pace, 0.5–1.5 (1.0 = the voice's normal pace; lower is slower). Works on every model. Defaults to the voice's own preset — 1.0 for cloned and designed voices. | |
| voice | Yes | A voice id from list_voices | |
| format | No | Audio format (default MP3) | |
| temperature | No | Expressiveness, 0.7–1.5 (higher = more varied). v-pro and v-lite only — v-studio and v-flash ignore it; use `delivery_mode` on v-studio instead. | |
| delivery_mode | No | How much the model varies its performance. v-studio ONLY — sending it with any other model is an error. v-studio ignores `temperature`; this is its equivalent. | |
| pronunciations | No | Words to say differently from how they are written: [{"from": "tendine", "to": "tèndine"}]. Whole-word, case-insensitive. Use it to fix a mispronounced word or name — respell it, or add a written stress accent (very effective in Italian and Spanish). Only the voice hears the replacement; billing and captions keep the original text. | |
| enhance_generation | No | Denoise the generated audio. Works on every model. Default false — it can leave a voice sounding over-smoothed, so only enable it when the output actually has background noise. | |
| pronunciation_template | No | Name or id of a pronunciation list saved in VocalLab Studio (Pronunciations). Applied together with `pronunciations`; entries passed in the call win. |