Generate Voice
generate_voiceSynthesize speech from text. Returns { audioUrl, modelId, costCents, billingMode } (costCents is the Varosity charge; 0 on the user's own key, where billingMode is "byok"). Pass voiceId for the provider's voice. Optionally set modelId to a Varosity voice model (elevenlabs-tts, openai-tts-1, deepgram-aura-2, heygen-voice); defaults to ElevenLabs. Scope required: generate: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": "generate_voice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to speak (1–5000 characters). Charged by length. | |
| modelId | No | Voice model id from list_voices (voiceModel). Default elevenlabs-tts, which is also used for ids that aren't Varosity models. | |
| voiceId | No | Voice id for the chosen model, from list_voices (ids are per provider). Omit for the default voice; if the id fails, the default voice is used (heygen-voice and heygen-voice-turbo refuse an id that is not a preset instead). |