Skip to content
VaakyoDocs
Navigation
Open console →

Agents

Voice configuration

The Voice configuration sets the text-to-speech provider, voice model, voice ID, spoken language, and speaking rate.

Fields

All fields live under voice in the agent configuration object.

FieldTypeDefaultAllowedDescription
providerstringcartesiacartesia, sarvam, elevenlabsThe text-to-speech provider.
modelstringsonic-3.6Dependent on providerThe voice model identifier. If omitted or mismatched, the provider default is applied.
voice_idstring""A voice identifier from GET /api/v1/voicesThe voice identifier. A Cartesia id that Cartesia doesn’t have is refused with 422; if a saved voice is later removed from Cartesia’s library, calls use the first voice for the language and the timeline shows voice.replaced.
voice_namestring""stringA label displayed in the console for reference.
languagestringhiLanguage code (e.g., hi, en, hi-IN)The spoken language. Setting Hindi (hi or hi-IN) instructs the agent to converse in natural Hinglish in Roman script.
speednumber1.00.6 to 1.5Speaking pace. 1.0 represents standard speed.
fallbacksarray[]up to 3 itemsBackup voices to use if the primary voice connection encounters issues.
{
  "voice": {
    "provider": "cartesia",
    "model": "sonic-3.6",
    "voice_id": "a0e99841-438c-4a64-b679-ae501e7d6091",
    "voice_name": "Riya",
    "language": "hi",
    "speed": 1.05
  }
}

Regional vernacular voice example

{
  "voice": {
    "provider": "sarvam",
    "model": "bulbul:v3",
    "voice_id": "priya",
    "voice_name": "Priya",
    "language": "hi-IN",
    "speed": 1.0
  }
}

Expressive neural voice example

{
  "voice": {
    "provider": "elevenlabs",
    "model": "eleven_flash_v2_5",
    "voice_id": "JBFqnCBsd6RMkjVDRZzb",
    "voice_name": "George",
    "language": "hi",
    "speed": 1.0
  }
}

Listing voices

Use GET /api/v1/voices to query available voices. Filter by provider (default cartesia; sarvam or elevenlabs for theirs), model, language, gender, or search query q:

curl "https://api.vaakyo.com/api/v1/voices?language=hi" \
  -H "Authorization: Bearer $VAAKYO_API_KEY"
[
  {
    "id": "a0e99841-438c-4a64-b679-ae501e7d6091",
    "name": "Riya",
    "description": "Warm, friendly young woman",
    "gender": "feminine",
    "language": "hi"
  }
]

Cloned voices

A workspace can clone a voice with Cartesia in the console (Clone a voice, also linked from the Voice tab’s voice picker): record or upload one person speaking, name the voice and pick its language. A cloned voice is private to its workspace:

  • GET /api/v1/voices (Cartesia) lists your workspace’s ready cloned voices first, marked "own": true. Other workspaces’ clones are never listed.
  • Use it like any Cartesia voice: its id goes in voice.voice_id (or a fallback’s).
  • Saving an agent with another workspace’s cloned voice is refused with 422 that voice belongs to another workspace: pick a voice from the list. A shared agent copied into another workspace gets the default voice in place of such a voice, and loses such fallback voices.

Voice preview

The Voice tab in the console plays a sample of any voice in the chosen language before you pick it.

Language support and Hinglish

When language is set to hi or hi-IN:

  • The agent is instructed to use natural Hinglish written in Roman script.
  • Proper text normalization is applied automatically for mixed Hindi and English phrasing.

For other regional languages (Tamil, Telugu, Kannada, Bengali, Marathi, etc.), configure the matching voice and language code (e.g., ta-IN), and structure the agent prompt accordingly.

Fallback voices

voice.fallbacks lists up to three backup voice configurations. If the primary voice fails to connect or disconnects during a call, the next fallback voice seamlessly assumes playback:

{
  "voice": {
    "provider": "cartesia",
    "model": "sonic-3.6",
    "voice_id": "a0e99841-438c-4a64-b679-ae501e7d6091",
    "voice_name": "Riya",
    "language": "hi",
    "speed": 1.0,
    "fallbacks": [
      {
        "provider": "sarvam",
        "model": "bulbul:v3",
        "voice_id": "priya",
        "voice_name": "Priya",
        "language": "hi-IN"
      }
    ]
  }
}

When a fallback voice is activated, a fallback.used event is recorded on the call timeline.

Usage tracking

Synthesized characters are accumulated in the call record under usage.tts_characters.

Esc