POST https://api.vakyam.ai/v1/tts/streammodel_id are
validated before streaming starts.voice_name is deprecated — use the voice parameter instead (a preset
voice name or a vc_ custom voice ID). See
POST /v1/tts/generate for details.header AuthorizationstringrequiredBearer vak_live_<key>.pcm is recommended for
streaming to avoid container overhead.123456789{ "text": "வணக்கம்.", "model_id": "raaga-v1", "voice": "Archana", "language": "ta-IN", "output_format": "pcm", "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.
Send either voice or the deprecated voice_name, not both.body voice_namestringdeprecatedvoice instead. Temporarily accepted for preset voices
only.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. pcm is recommended for
streaming to avoid container overhead.body sample_rateintegerdefault: 240008000, 16000, 24000, or 48000.body speednumberdefault: 1.00.5–2.0.application/octet-stream of audio bytes. Usage and
rate-limit metadata are returned as headers:123Content-Type: application/octet-stream X-Characters-Used: 12 X-Audio-Duration-Seconds: 1.8
X-Characters-UsedintegerX-Audio-Duration-Secondsnumber12345678910curl -N https://api.vakyam.ai/v1/tts/stream \ -H "Authorization: Bearer $VAKYAM_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "text": "வணக்கம்.", "model_id": "raaga-v1", "voice": "Archana", "language": "ta-IN", "output_format": "pcm" }' --output speech.pcm
12345Content-Type: application/octet-stream X-Characters-Used: 12 X-Audio-Duration-Seconds: 1.8 X-RateLimit-Limit: 15 X-RateLimit-Remaining: 14