POST https://api.vakyam.ai/v1/tts/generatevoice_name is deprecated and will be removed after a migration window. Use
the new voice parameter instead — it accepts a preset voice name (e.g.
Archana) or a custom voice ID beginning with vc_. voice_name remains
temporarily accepted for preset voices only and cannot be combined with voice.header AuthorizationstringrequiredBearer vak_live_<key>.123456789{ "text": "வணக்கம், நான் வாக்யம் AI பேசுகிறேன்.", "model_id": "raaga-v1", "voice": "Archana", "language": "ta-IN", "output_format": "mp3", "sample_rate": 24000, "speed": 1.0 }
body textstringrequiredbody model_idstringrequiredraaga-v1.body voicestringrequiredArchana) or a custom voice ID
beginning with vc_. A preset voice must form a valid pair with language —
see Voices. Send either voice or the
deprecated voice_name, not both.body voice_namestringdeprecatedvoice instead. Temporarily accepted for preset voices
only (it cannot select vc_ custom voices) and will be removed after the
migration window.body languagestringrequireden-IN, hi-IN, ta-IN, te-IN, kn-IN, mr-IN,
gu-IN, or bn-IN.body output_formatstringdefault: mp3mp3, wav, pcm, or mulaw.body sample_rateintegerdefault: 240008000, 16000, 24000, or 48000.body speednumberdefault: 1.00.5–2.0.123456{ "audio": "SUQzBAAAAAAA...", "format": "mp3", "duration_seconds": 2.4, "characters_used": 36 }
audiostringformatstringduration_secondsnumbercharacters_usedinteger12345678910curl https://api.vakyam.ai/v1/tts/generate \ -H "Authorization: Bearer $VAKYAM_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "text": "வணக்கம், நான் வாக்யம் AI பேசுகிறேன்.", "model_id": "raaga-v1", "voice": "Archana", "language": "ta-IN", "output_format": "mp3" }'
123456{ "audio": "SUQzBAAAAAAA...", "format": "mp3", "duration_seconds": 2.4, "characters_used": 36 }