{
"success": false,
"message": "Invalid request: Field required at body -> text",
"status_code": 400
}
{
"success": false,
"error": {
"type": "FORBIDDEN",
"message": "You do not have permission to access this resource. Check your API key, organization status, or available credits."
}
}
{
"detail": {
"error_code": "RATE_LIMITED",
"message": "Only 1 active request is allowed at a time. Wait for your current request to finish before sending another.",
"status_code": 429
}
}
{
"success": false,
"message": "We are facing technical difficulties. Please try again later.",
"status_code": 500
}
{
"success": false,
"error": {
"type": "SERVICE_UNAVAILABLE",
"message": "Text-to-speech service is temporarily unavailable."
}
}
Text-to-Speech
Text-to-Speech (Streaming)
Stream audio in chunks as it’s generated via Server-Sent Events.
{
"success": false,
"message": "Invalid request: Field required at body -> text",
"status_code": 400
}
{
"success": false,
"error": {
"type": "FORBIDDEN",
"message": "You do not have permission to access this resource. Check your API key, organization status, or available credits."
}
}
{
"detail": {
"error_code": "RATE_LIMITED",
"message": "Only 1 active request is allowed at a time. Wait for your current request to finish before sending another.",
"status_code": 429
}
}
{
"success": false,
"message": "We are facing technical difficulties. Please try again later.",
"status_code": 500
}
{
"success": false,
"error": {
"type": "SERVICE_UNAVAILABLE",
"message": "Text-to-speech service is temporarily unavailable."
}
}
New — Audio Tags: Add expressive delivery on Timbre v3.0 by placing tags like <whispers>, <laugh>, or <pauses> inline in your text.
Receive audio in chunks as it’s generated, allowing playback to start immediately. Reduces latency compared to TTS REST. For the lowest latency, see TTS Realtime.
Passing numbers, IDs, dates, or currency as raw strings causes mispronunciations. See the Input Formatting Guide for correct formatting of phone numbers, account numbers, PINs, Aadhaar, vehicle registration numbers, GSTIN, currency, and more.
Supported languages: Hindi, English, Tamil, Telugu, Kannada, Malayalam, Marathi, Punjabi, Bengali, and Gujarati.Each model has its own voices — see the Voice Catalog.
Audio encoding format. For telephony, prefer container=mulaw or container=alaw over this field, as both produce the same output. Not required when container is mp3.
Value
Meaning
linear_pcm (default)
Uncompressed PCM audio
pcm_s16le
Signed 16-bit little-endian PCM
pcm_mulaw
G.711 µ-law. With container=raw, the same as container=mulaw.
pcm_alaw
G.711 A-law. With container=raw, the same as container=alaw.
oggopus
OGG Opus, a playable file. The same as container=ogg.
Encoding aliases — produce identical output to the container rows above:
container
encoding
Equivalent to
raw
pcm_mulaw
container=mulaw
raw
pcm_alaw
container=alaw
raw or ogg
oggopus
container=ogg
bitrate only applies when container=mp3. container=mulaw/alaw override sample_rate to 8000 Hz.
When container=ogg or encoding=oggopus is requested, all audio chunks are encoded into a single OGG Opus file delivered as one chunk — streaming delivery is not possible for OGG.
The server streams audio via Server-Sent Events. Each chunk event carries base64-encoded audio in the audio field. A final complete event signals that synthesis is finished.
synthesize_stream yields audio chunks as they arrive. Playback or writing can begin before the full response is complete.
from gnani.tts import GnaniTTSStreamClientclient = GnaniTTSStreamClient(api_key="your-api-key")with open("output.wav", "wb") as f: for chunk in client.synthesize_stream( "नमस्ते, आप कैसे हैं?", voice="Nalini", model="timbre-v2.5", language="hi-IN", ): f.write(chunk)
Text to synthesize. With timbre-v3.0 the text may carry inline audio tags: <coughs>, <excited>, <exhales>, <giggle>, <laugh>, <pauses>, <shouting>, <sigh>, <slow>, <sniffles>, <whispers>, <yawns>, <clears throat> — for example Let me check. <pauses> Found it <laugh>. With timbre-v2.5 these tags are removed before synthesis and are not spoken; text consisting only of tags is rejected with 400.
TTS model: timbre-v2.5 or timbre-v3.0. Each model has its own voice catalog, and a voice from one cannot be used with the other. timbre-v3.0 additionally supports inline audio tags in text.
Voice name from the catalog of the requested model. timbre-v3.0 voices: Avinash, Shivani, Lakshmi, Kalpana, Shubham, Prakash, Devansh, Yashraj, Chetana, Vasudha, Riyaa, Tarika and Harshad (each speaks all supported languages).
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Gnani AI Documentation","description":"Gnani AI docs for Speech APIs (STT and TTS), Agent Builder, and the Agent Builder Platform API. Build Voice AI for Indian languages and call audio.","colors":{"primary":"#1A1A1A","light":"#FAFAFA","dark":"#1A1A1A"},"logo":{"light":"https://mintcdn.com/gnaniinnovationsprivatelimited/07TQaHxEIXJZr-iJ/logo/favicon.svg?fit=max\u0026auto=format\u0026n=07TQaHxEIXJZr-iJ\u0026q=85\u0026s=feca06a904160c2b661bfa77fe1f90c4","dark":"https://mintcdn.com/gnaniinnovationsprivatelimited/07TQaHxEIXJZr-iJ/logo/favicon.svg?fit=max\u0026auto=format\u0026n=07TQaHxEIXJZr-iJ\u0026q=85\u0026s=feca06a904160c2b661bfa77fe1f90c4","href":"https://app.gnani.ai/voice"},"favicon":"https://mintcdn.com/gnaniinnovationsprivatelimited/j9EzPlQTWx8MehCB/favicon.svg?fit=max\u0026auto=format\u0026n=j9EzPlQTWx8MehCB\u0026q=85\u0026s=f14fb3fd819d0b628fbcd5108850f804","api":{"openapi":["STT.yml","STTBatch.yml","TTS.yml","VC.yml","voice-clone-embeddings.yml","agents_openapi.yml","agent_config_openapi.yml"],"playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["curl","python","javascript"],"prefill":true},"mdx":{"auth":{"method":"key","name":"X-API-Key-ID"},"server":"https://api.vachana.ai"}},"appearance":{"default":"system","strict":false},"background":{"decoration":"gradient","color":{"light":"#FAFAFA","dark":"#1A1A1A"}},"navbar":{"links":[{"href":"mailto:hello-inya@gnani.site","label":"Support"},{"icon":"discord","href":"https://discord.gg/aECcvtABpq","label":"Community"},{"href":"https://www.gnani.ai/","label":"Website"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.gnani.ai/voice"}},"footer":{"socials":{"x":"https://x.com/GnaniAi","linkedin":"https://www.linkedin.com/company/gnani-ai","website":"https://www.gnani.ai/","instagram":"https://instagram.com/gnani.ai"}},"seo":{"indexing":"all"},"fonts":{"body":{"family":"Inter"}},"integrations":{"clarity":{"projectId":"ytd0fajeva"},"ga4":{"measurementId":"G-58CTSCY1G8"}},"contextual":{"options":[{"title":"View as Markdown","description":"View this page as Markdown on docs.gnani.ai","icon":"file-text","href":{"base":"https://docs.gnani.ai$path.md"}},"copy",{"title":"Open in Claude","description":"Open this page in Claude using docs.gnani.ai","icon":"claude","href":{"base":"https://claude.ai/new","query":[{"key":"q","value":"Read from https://docs.gnani.ai$path.md so I can ask questions about it."}]}},{"title":"Open in ChatGPT","description":"Open this page in ChatGPT using docs.gnani.ai","icon":"openai","href":{"base":"https://chat.openai.com/","query":[{"key":"hints","value":"search"},{"key":"q","value":"Read from https://docs.gnani.ai$path so I can ask questions about it."}]}},"add-mcp","mcp","cursor"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"gnaniinnovationsprivatelimited","hasAudioNarration":false,"actualSubdomain":"gnaniinnovationsprivatelimited","customDomains":["docs.gnani.ai"],"gitSource":{"type":"github","owner":"gnani-ai-mintlify","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae480c3c2f3f73890232923","collectionId":"8f480177-292b-41eb-b2a9-b2fbf43488ec","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae480c3c2f3f73890232923"},"feedback":{"thumbs":true,"edits":false},"entitlements":{},"buildId":"6ae480c3c2f3f73890232923","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"Gnani AI APIs","count":37},{"language":"default","tag":"Gnani AI Agent Builder APIs","count":28},{"language":"default","tag":"Gnani AI Agents","count":26},{"language":"default","tag":"APIs","count":25},{"language":"default","tag":"Speech-to-Text","count":15},{"language":"default","tag":"Gnani APIs","count":8},{"language":"default","tag":"Getting Started","count":7},{"language":"default","tag":"Agents API","count":7},{"language":"default","tag":"Batch transcription","count":7},{"language":"default","tag":"Automating Workflows with Integrations","count":6}],"searchSettings":{"showContentSnippets":false}},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"html[data-gnani-index] #content-side-layout[data-api-example]>:not(#gnani-toc-layout){display:none!important}html[data-gnani-index] [id$=\"operation-page\"]>div:first-child>div:nth-child(2){display:none!important}#gnani-toc-layout{display:none;box-sizing:border-box;max-height:100%;padding-left:2.5rem;width:19rem}@media (min-width: 1280px){#gnani-toc-layout{display:flex}}#gnani-toc{width:16.5rem;min-width:0;max-height:100%;margin-top:-2.5rem;padding:2.5rem 0 1rem;overflow-y:auto;font-size:0.875rem;line-height:1.5rem;scrollbar-width:none}#gnani-toc::-webkit-scrollbar{display:none}#gnani-toc .gnani-toc-title{display:flex;align-items:center;gap:0.5rem;margin:0 0 0.5rem;font-weight:500;color:rgb(55 65 81)}html.dark #gnani-toc .gnani-toc-title{color:rgb(209 213 219)}#gnani-toc ul{margin:0;padding:0;list-style:none}#gnani-toc a{display:block;padding:0.25rem 0 0.25rem var(--gnani-toc-indent, 0);font-weight:500;color:rgb(75 85 99);text-decoration:none;overflow-wrap:anywhere}html.dark #gnani-toc a{color:rgb(156 163 175)}#gnani-toc a:hover{color:rgb(17 24 39)}html.dark #gnani-toc a:hover{color:rgb(209 213 219)}#gnani-toc li[data-active]>a{color:rgb(17 24 39)}html.dark #gnani-toc li[data-active]>a{color:rgb(250 250 250)}"}],"page":{"pagePath":"api/TTS/tts-sse","slug":"/api/TTS/tts-sse","pageMetadata":{"title":"Text-to-Speech (Streaming)","openapi":"POST /api/v1/tts/sse","description":"Stream audio in chunks as it's generated via Server-Sent Events.","href":"/api/TTS/tts-sse"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Stream audio in chunks as it’s generated via Server-Sent Events.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,hr:`hr`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Expandable,Heading,Note,ParamField,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`New — `,_jsx(_components.a,{href:`/api/TTS/tts-audio-tags`,children:`Audio Tags`}),`:`]}),` Add expressive delivery on Timbre v3.0 by placing tags like `,_jsx(_components.code,{children:`\u003cwhispers>`}),`, `,_jsx(_components.code,{children:`\u003claugh>`}),`, or `,_jsx(_components.code,{children:`\u003cpauses>`}),` inline in your text.`]})}),`\n`,_jsxs(_components.p,{children:[`Receive audio in chunks as it’s generated, allowing playback to start immediately. Reduces latency compared to `,_jsx(_components.a,{href:`/api/TTS/tts-inference`,children:`TTS REST`}),`. For the lowest latency, see `,_jsx(_components.a,{href:`/api/TTS/tts-websocket`,children:`TTS Realtime`}),`.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Passing numbers, IDs, dates, or currency as raw strings causes mispronunciations. See the `,_jsx(_components.a,{href:`/api/TTS/tts-input-formating`,children:`Input Formatting Guide`}),` for correct formatting of phone numbers, account numbers, PINs, Aadhaar, vehicle registration numbers, GSTIN, currency, and more.`]})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`models`,children:`Models`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Model`}),_jsxs(_components.th,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`model`}),` value`]}),_jsx(_components.th,{style:{textAlign:`left`},children:`Languages`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Extra parameters`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Timbre v3.0`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`timbre-v3.0`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`10 Indian languages (every voice speaks all 10)`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`language`}),`, `,_jsx(_components.code,{children:`speed`}),`, `,_jsx(_components.a,{href:`/api/TTS/tts-audio-tags`,children:`audio tags`}),` in `,_jsx(_components.code,{children:`text`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Timbre v2.5`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`timbre-v2.5`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`10 Indian languages`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`language`}),`, `,_jsx(_components.code,{children:`speed`})]})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Supported languages:`}),` Hindi, English, Tamil, Telugu, Kannada, Malayalam, Marathi, Punjabi, Bengali, and Gujarati.`]}),`\n`,_jsxs(_components.p,{children:[`Each model has its own voices — see the `,_jsx(_components.a,{href:`/api/TTS/available-voices`,children:`Voice Catalog`}),`.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`endpoint`,children:`Endpoint`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`POST https://api.vachana.ai/api/v1/tts/sse`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`authentication`,children:`Authentication`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Header`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Required`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`X-API-Key-ID`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Yes`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Your Gnani API key`})]})})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`request-parameters`,children:`Request Parameters`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"नमस्ते, आप कैसे हैं?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"voice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Nalini\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"timbre-v2.5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"language\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"hi-IN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"speed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1.0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"audio_config\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sample_rate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`48000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"num_channels\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sample_width\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"encoding\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"linear_pcm\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"container\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"wav\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(ParamField,{body:`text`,type:`string`,required:true,id:`param-text`,children:_jsxs(_components.p,{children:[`The text to synthesize into speech. Pass numbers, dates, and currency as spoken words to avoid mispronunciations — see `,_jsx(_components.a,{href:`/api/TTS/tts-input-formating`,children:`Input Formatting Guide`}),`.`]})}),`\n`,_jsx(ParamField,{body:`model`,type:`string`,required:true,id:`param-model`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`timbre-v2.5`}),` or `,_jsx(_components.code,{children:`timbre-v3.0`}),`. The model determines which voices you can use.`]})}),`\n`,_jsxs(ParamField,{body:`voice`,type:`string`,required:true,id:`param-voice`,children:[_jsx(_components.p,{children:`Voice name from the catalog of the model you selected — voices are not shared between models.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`model`})}),_jsx(_components.th,{style:{textAlign:`left`},children:`Example voices`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Full list`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`timbre-v2.5`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`Nalini`}),`, `,_jsx(_components.code,{children:`Kaveri`}),`, `,_jsx(_components.code,{children:`Deepak`})]}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.a,{href:`/api/TTS/available-voices#timbre-v2-5-voices`,children:`Timbre v2.5 voices`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`timbre-v3.0`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`Shivani`}),`, `,_jsx(_components.code,{children:`Avinash`}),`, `,_jsx(_components.code,{children:`Lakshmi`})]}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.a,{href:`/api/TTS/available-voices#timbre-v3-0-voices`,children:`Timbre v3.0 voices`})})]})]})]})]}),`\n`,_jsxs(ParamField,{body:`language`,type:`string`,required:true,id:`param-language`,children:[_jsx(_components.p,{children:`Language of the input text. Controls text normalization and routing.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Value`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Language`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`auto`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Auto-detect from script (recommended for mixed content)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`hi-IN`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Hindi`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`en-IN`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`English`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`ta-IN`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Tamil`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`te-IN`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Telugu`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`kn-IN`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Kannada`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`ml-IN`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Malayalam`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`mr-IN`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Marathi`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`pa-IN`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Punjabi`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`bn-IN`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Bengali`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`gu-IN`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Gujarati`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`hi-en`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Hinglish (code-mixed Hindi–English)`})]})]})]})]}),`\n`,_jsx(ParamField,{body:`speed`,type:`number | string`,default:`1.0`,id:`param-speed`,children:_jsxs(_components.p,{children:[`Playback speed multiplier. Numeric range: `,_jsx(_components.code,{children:`0.85`}),` (slowest) to `,_jsx(_components.code,{children:`1.15`}),` (fastest). String shortcuts: `,_jsx(_components.code,{children:`\"slow\"`}),` = 0.85, `,_jsx(_components.code,{children:`\"medium\"`}),` = 1.0, `,_jsx(_components.code,{children:`\"fast\"`}),` = 1.15.`]})}),`\n`,_jsxs(ParamField,{body:`audio_config`,type:`object`,id:`param-audio-config`,children:[_jsx(_components.p,{children:`Controls the format of the returned audio.`}),_jsxs(Expandable,{title:`audio_config fields`,children:[_jsx(ParamField,{body:`audio_config.sample_rate`,type:`integer`,default:`48000`,id:`param-audio-config-sample-rate`,children:_jsxs(_components.p,{children:[`Sample rate in Hz. Supported: `,_jsx(_components.code,{children:`8000`}),`, `,_jsx(_components.code,{children:`16000`}),`, `,_jsx(_components.code,{children:`22050`}),`, `,_jsx(_components.code,{children:`24000`}),`, `,_jsx(_components.code,{children:`44100`}),`, `,_jsx(_components.code,{children:`48000`}),`.`]})}),_jsx(ParamField,{body:`audio_config.num_channels`,type:`integer`,default:`1`,id:`param-audio-config-num-channels`,children:_jsxs(_components.p,{children:[`Number of audio channels. `,_jsx(_components.code,{children:`1`}),` for mono.`]})}),_jsx(ParamField,{body:`audio_config.sample_width`,type:`integer`,default:`2`,id:`param-audio-config-sample-width`,children:_jsxs(_components.p,{children:[`Sample width in bytes. `,_jsx(_components.code,{children:`2`}),` for 16-bit audio.`]})}),_jsxs(ParamField,{body:`audio_config.encoding`,type:`string`,default:`linear_pcm`,id:`param-audio-config-encoding`,children:[_jsxs(_components.p,{children:[`Audio encoding format. For telephony, prefer `,_jsx(_components.code,{children:`container=mulaw`}),` or `,_jsx(_components.code,{children:`container=alaw`}),` over this field, as both produce the same output. Not required when `,_jsx(_components.code,{children:`container`}),` is `,_jsx(_components.code,{children:`mp3`}),`.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Value`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`linear_pcm`}),` (default)`]}),_jsx(_components.td,{children:`Uncompressed PCM audio`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pcm_s16le`})}),_jsx(_components.td,{children:`Signed 16-bit little-endian PCM`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pcm_mulaw`})}),_jsxs(_components.td,{children:[`G.711 µ-law. With `,_jsx(_components.code,{children:`container=raw`}),`, the same as `,_jsx(_components.code,{children:`container=mulaw`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pcm_alaw`})}),_jsxs(_components.td,{children:[`G.711 A-law. With `,_jsx(_components.code,{children:`container=raw`}),`, the same as `,_jsx(_components.code,{children:`container=alaw`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`oggopus`})}),_jsxs(_components.td,{children:[`OGG Opus, a playable file. The same as `,_jsx(_components.code,{children:`container=ogg`}),`.`]})]})]})]})]}),_jsxs(ParamField,{body:`audio_config.container`,type:`string`,default:`wav`,id:`param-audio-config-container`,children:[_jsxs(_components.p,{children:[`Output container format. See the `,_jsx(_components.a,{href:`#audio-format-reference`,children:`Audio Format Reference`}),` for sample rates and content types.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Value`}),_jsx(_components.th,{children:`Output`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`wav`}),` (default)`]}),_jsx(_components.td,{children:`WAV file, with header`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`raw`})}),_jsxs(_components.td,{children:[`Raw audio with no header (16-bit PCM with `,_jsx(_components.code,{children:`linear_pcm`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`mp3`})}),_jsxs(_components.td,{children:[`MP3 file. `,_jsx(_components.code,{children:`bitrate`}),` applies.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ogg`})}),_jsx(_components.td,{children:`OGG Opus file`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`mulaw`})}),_jsx(_components.td,{children:`Raw G.711 µ-law. Forces 8000 Hz.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`alaw`})}),_jsx(_components.td,{children:`Raw G.711 A-law. Forces 8000 Hz.`})]})]})]})]}),_jsxs(ParamField,{body:`audio_config.bitrate`,type:`string`,default:`128k`,id:`param-audio-config-bitrate`,children:[_jsxs(_components.p,{children:[`MP3 bitrate. Only used when `,_jsx(_components.code,{children:`container`}),` is `,_jsx(_components.code,{children:`mp3`}),`.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Value`}),_jsx(_components.th,{children:`Trade-off`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`32k`})}),_jsx(_components.td,{children:`Lowest quality, smallest file`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`64k`})}),_jsx(_components.td,{children:`Lower quality, smaller file`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`96k`})}),_jsx(_components.td,{children:`Medium`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`128k`}),` (default)`]}),_jsx(_components.td,{children:`Standard quality`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`192k`})}),_jsx(_components.td,{children:`Highest quality, largest file`})]})]})]})]})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`audio-format-reference`,children:`Audio Format Reference`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`container`})}),_jsx(_components.th,{children:_jsx(_components.code,{children:`encoding`})}),_jsx(_components.th,{children:`Output`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`sample_rate`})}),_jsx(_components.th,{children:_jsx(_components.code,{children:`bitrate`})}),_jsx(_components.th,{children:`Content-Type`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`wav`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`linear_pcm`})}),_jsx(_components.td,{children:`WAV file (with header)`}),_jsx(_components.td,{children:`8000–48000 Hz`}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`audio/wav`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`raw`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`linear_pcm`})}),_jsx(_components.td,{children:`Raw 16-bit PCM`}),_jsx(_components.td,{children:`8000–48000 Hz`}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`application/octet-stream`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`mp3`})}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:`MP3 file`}),_jsx(_components.td,{children:`8000–48000 Hz`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`32k`}),`–`,_jsx(_components.code,{children:`192k`})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`audio/mpeg`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ogg`})}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:`OGG Opus file`}),_jsx(_components.td,{children:`8000–48000 Hz`}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`audio/ogg`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`mulaw`})}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:`Raw G.711 µ-law`}),_jsx(_components.td,{children:_jsx(_components.strong,{children:`forced 8000 Hz`})}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`audio/basic`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`alaw`})}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:`Raw G.711 A-law`}),_jsx(_components.td,{children:_jsx(_components.strong,{children:`forced 8000 Hz`})}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`audio/alaw`})})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Encoding aliases`}),` — produce identical output to the `,_jsx(_components.code,{children:`container`}),` rows above:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`container`})}),_jsx(_components.th,{children:_jsx(_components.code,{children:`encoding`})}),_jsx(_components.th,{children:`Equivalent to`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`raw`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`pcm_mulaw`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`container=mulaw`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`raw`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`pcm_alaw`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`container=alaw`})})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`raw`}),` or `,_jsx(_components.code,{children:`ogg`})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`oggopus`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`container=ogg`})})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`bitrate`}),` only applies when `,_jsx(_components.code,{children:`container=mp3`}),`. `,_jsx(_components.code,{children:`container=mulaw`}),`/`,_jsx(_components.code,{children:`alaw`}),` override `,_jsx(_components.code,{children:`sample_rate`}),` to 8000 Hz.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`container=ogg`}),` or `,_jsx(_components.code,{children:`encoding=oggopus`}),` is requested, all audio chunks are encoded into a single OGG Opus file delivered as one chunk — streaming delivery is not possible for OGG.`]})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(_components.p,{children:[`The server streams audio via Server-Sent Events. Each `,_jsx(_components.code,{children:`chunk`}),` event carries base64-encoded audio in the `,_jsx(_components.code,{children:`audio`}),` field. A final `,_jsx(_components.code,{children:`complete`}),` event signals that synthesis is finished.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: start`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`data: {\"status\": \"streaming_started\", \"text\": \"नमस्ते, आप कैसे हैं?\"}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: chunk`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`data: {\"chunk_index\": 1, \"audio\": \"\u003cbase64-encoded audio>\", \"is_final\": false}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: chunk`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`data: {\"chunk_index\": 2, \"audio\": \"\u003cbase64-encoded audio>\", \"is_final\": false}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: complete`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`data: {\"chunk_index\": 3, \"audio\": \"\", \"is_final\": true}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Event`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`start`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Synthesis has begun.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`chunk`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`An audio fragment. Decode `,_jsx(_components.code,{children:`audio`}),` from base64 and append to your buffer in order.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`complete`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`All audio has been sent. `,_jsx(_components.code,{children:`is_final: true`}),`, `,_jsx(_components.code,{children:`audio`}),` is empty.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`error`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Synthesis failed. Contains error details when returned by the server.`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`errors`,children:`Errors`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Text-to-Speech`}),` (WebSocket `,_jsx(_components.code,{children:`error`}),` message, and the `,_jsx(_components.code,{children:`error`}),` event on SSE) uses `,_jsx(_components.code,{children:`type`}),` and `,_jsx(_components.code,{children:`message`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Invalid text or audio configuration.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`The connection remains open after recoverable errors.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Voice Cloning`}),` (WebSocket) adds an `,_jsx(_components.code,{children:`error`}),` code:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"SYNTHESIS_FAILED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Human-readable error description\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`code-example`,children:`Code Example`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`15`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.vachana.ai/api/v1/tts/sse`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-API-Key-ID: \u003cyour-api-key>\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"text\": \"नमस्ते, आप कैसे हैं?\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"voice\": \"Nalini\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"timbre-v2.5\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"language\": \"hi-IN\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"speed\": 1.0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"audio_config\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"sample_rate\": 48000,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"encoding\": \"linear_pcm\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"container\": \"wav\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`28`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`28`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.vachana.ai/api/v1/tts/sse\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-API-Key-ID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\u003cyour-api-key>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` text:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"नमस्ते, आप कैसे हैं?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` voice:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Nalini\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` model:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"timbre-v2.5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` language:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"hi-IN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` speed:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1.0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` audio_config:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` sample_rate:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 48000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` encoding:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"linear_pcm\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` container:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"wav\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` reader`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getReader`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` decoder`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` TextDecoder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`while`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`done`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`value`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` reader`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`read`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`done`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`break`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`decoder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`decode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`value`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`26`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`26`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests, base64`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.vachana.ai/api/v1/tts/sse\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-API-Key-ID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cyour-api-key>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"नमस्ते, आप कैसे हैं?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"voice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Nalini\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"timbre-v2.5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"language\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"hi-IN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"speed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1.0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"audio_config\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"sample_rate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`48000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"encoding\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"linear_pcm\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"container\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"wav\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` stream`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` line `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response.iter_lines():`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` line:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(line.decode(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"utf-8\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`]})})})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`available-voices`,children:`Available Voices`}),`\n`,_jsx(_components.p,{children:`Each model has its own voices, and a voice only works with its own model:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Timbre v2.5`}),` — 42 voices across 10 Indian languages, English, and Hinglish, each with a preferred language. See `,_jsx(_components.a,{href:`/api/TTS/available-voices#timbre-v2-5-voices`,children:`Timbre v2.5 voices`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Timbre v3.0`}),` — 13 voices that each speak all 10 languages and support audio tags. See `,_jsx(_components.a,{href:`/api/TTS/available-voices#timbre-v3-0-voices`,children:`Timbre v3.0 voices`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Popular examples: `,_jsx(_components.code,{children:`Nalini`}),` (Hindi), `,_jsx(_components.code,{children:`Kaveri`}),` (English), `,_jsx(_components.code,{children:`Deepak`}),` (Hindi), `,_jsx(_components.code,{children:`Poorvi`}),` (Hinglish).`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`python-sdk`,children:`Python SDK`}),`\n`,_jsx(_components.p,{children:`The SDK’s streaming client handles SSE parsing and chunk reassembly for you — you just iterate and write.`}),`\n`,_jsx(Heading,{level:`3`,id:`installation`,children:`Installation`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pip`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` gnani-vachana`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Requires `,_jsx(_components.strong,{children:`Python 3.10+`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`authentication-2`,children:`Authentication`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Constructor argument`,numberOfLines:`3`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` gnani.tts `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` GnaniTTSStreamClient`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` GnaniTTSStreamClient(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-api-key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Environment variable`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` GNANI_API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-api-key\"`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Environment variable (usage)`,numberOfLines:`3`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` gnani.tts `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` GnaniTTSStreamClient`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` GnaniTTSStreamClient()`})]}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`3`,id:`stream-audio-to-a-file`,children:`Stream Audio to a File`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`synthesize_stream`}),` yields audio chunks as they arrive. Playback or writing can begin before the full response is complete.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` gnani.tts `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` GnaniTTSStreamClient`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` GnaniTTSStreamClient(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-api-key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`with`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"output.wav\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"wb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` f:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` chunk `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.synthesize_stream(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"नमस्ते, आप कैसे हैं?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` voice`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Nalini\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` model`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"timbre-v2.5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` language`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"hi-IN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ):`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` f.write(chunk)`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`with-custom-audio-config`,children:`With Custom Audio Config`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` gnani.tts `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` GnaniTTSStreamClient, AudioConfig`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` GnaniTTSStreamClient(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-api-key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`with`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"output.wav\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"wb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` f:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` chunk `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.synthesize_stream(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"नमस्ते, आप कैसे हैं?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` voice`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Nalini\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` model`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"timbre-v2.5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` language`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"hi-IN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` audio_config`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`AudioConfig(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` sample_rate`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`48000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` encoding`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"linear_pcm\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` container`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"wav\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ):`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` f.write(chunk)`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Text-to-Speech (Streaming)","openapi":"POST /api/v1/tts/sse","description":"Stream audio in chunks as it's generated via Server-Sent Events.","href":"/api/TTS/tts-sse"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"Models","slug":"models","depth":2,"children":[]},{"title":"Endpoint","slug":"endpoint","depth":2,"children":[]},{"title":"Authentication","slug":"authentication","depth":2,"children":[]},{"title":"Request Parameters","slug":"request-parameters","depth":2,"children":[]},{"title":"Audio Format Reference","slug":"audio-format-reference","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[{"title":"Errors","slug":"errors","depth":3,"children":[]}]},{"title":"Code Example","slug":"code-example","depth":2,"children":[]},{"title":"Available Voices","slug":"available-voices","depth":2,"children":[]},{"title":"Python SDK","slug":"python-sdk","depth":2,"children":[{"title":"Installation","slug":"installation","depth":3,"children":[]},{"title":"Authentication","slug":"authentication-2","depth":3,"children":[]},{"title":"Stream Audio to a File","slug":"stream-audio-to-a-file","depth":3,"children":[]},{"title":"With Custom Audio Config","slug":"with-custom-audio-config","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/gnaniinnovationsprivatelimited/aa125a548bc31de7/api-page-index.js"],"openApiReferenceData":{"operation":{"summary":"TTS Stream","operationId":"tts_stream_api_v1_tts_sse_post","parameters":["2d36fbc4-e18e-432f-b865-c759d865339a"],"requestBody":"71147a37-c9fa-42f9-870b-5cbf87d566ee","responses":{"200":"98c190d4-3742-4ba2-b988-d51a771b1f44","400":"88489d3d-b05c-4d6d-8f9a-cc066f837651","403":"af7ca4d4-df38-4063-b19e-32c252746906","429":"16143fe7-f81c-4abf-96f7-282cf2d861cb","500":"50f29dec-bc41-47e9-aacd-43883cee734e","503":"2695940b-e5d9-4316-a0ad-ad1bb7bd8476"},"method":"post","type":"path","servers":["6f76dffd-5ad4-40b3-a4f8-4449b0a7c412"],"security":[],"path":"/api/v1/tts/sse","baseUrlOptions":["https://api.vachana.ai"],"title":"TTS Stream","description":"Stream audio in chunks as it's generated via Server-Sent Events.","codeSamples":[],"requestExampleLanguages":["bash","python","javascript"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.text":"नमस्ते, आप कैसे हैं?","body.model":"timbre-v2.5","body.audio_config.sample_rate":48000,"body.audio_config.num_channels":1,"body.audio_config.sample_width":2,"body.audio_config.encoding":"linear_pcm","body.audio_config.container":"wav","body.voice":"Nalini","body.language":"hi-IN","body.speed":1}]},"dependencies":{"parameters":{"2d36fbc4-e18e-432f-b865-c759d865339a":{"name":"X-API-Key-ID","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key-Id","isRequired":true,"uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"text":{"type":"string","title":"Text","description":"Text to synthesize. With `timbre-v3.0` the text may carry inline audio tags: `\u003ccoughs>`, `\u003cexcited>`, `\u003cexhales>`, `\u003cgiggle>`, `\u003claugh>`, `\u003cpauses>`, `\u003cshouting>`, `\u003csigh>`, `\u003cslow>`, `\u003csniffles>`, `\u003cwhispers>`, `\u003cyawns>`, `\u003cclears throat>` — for example `Let me check. \u003cpauses> Found it \u003claugh>`. With `timbre-v2.5` these tags are removed before synthesis and are not spoken; text consisting only of tags is rejected with 400.","isRequired":true,"uniqueKey":"text","typeLabel":"string"},"model":{"type":"string","title":"TTSModel","description":"TTS model: `timbre-v2.5` or `timbre-v3.0`. Each model has its own voice catalog, and a voice from one cannot be used with the other. `timbre-v3.0` additionally supports inline audio tags in `text`.","enum":["timbre-v2.5","timbre-v3.0"],"isRequired":true,"uniqueKey":"model","typeLabel":"enum\u003cstring>"},"audio_config":{"type":"object","title":"AudioConfig","description":"Audio output configuration.","properties":{"sample_rate":{"type":"integer","maximum":48000,"minimum":8000,"title":"Sample Rate","description":"Sample rate in Hz. Supported: 8000, 16000, 22050, 24000, 44100, 48000","uniqueKey":"audio_config.sample_rate","typeLabel":"integer"},"num_channels":{"type":"integer","maximum":8,"minimum":1,"title":"Num Channels","description":"Number of audio channels","uniqueKey":"audio_config.num_channels","typeLabel":"integer"},"sample_width":{"type":"integer","maximum":4,"minimum":1,"title":"Sample Width","description":"Sample width in bytes","uniqueKey":"audio_config.sample_width","typeLabel":"integer"},"encoding":{"type":"string","title":"AudioEncoding","description":"Audio encoding format","enum":["linear_pcm","pcm_s16le","pcm_mulaw","pcm_alaw","oggopus"],"uniqueKey":"audio_config.encoding","typeLabel":"enum\u003cstring>"},"container":{"type":"string","title":"AudioContainer","description":"Audio container format","enum":["raw","mp3","wav","mulaw","alaw","ogg"],"uniqueKey":"audio_config.container","typeLabel":"enum\u003cstring>"},"bitrate":{"type":"string","title":"MP3Bitrate","description":"MP3 bitrate (only used when container=mp3)","enum":["32k","64k","96k","128k","192k"],"uniqueKey":"audio_config.bitrate","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"audio_config","typeLabel":"AudioConfig · object"},"voice":{"type":"string","title":"Voice","description":"Voice name from the catalog of the requested model. `timbre-v3.0` voices: Avinash, Shivani, Lakshmi, Kalpana, Shubham, Prakash, Devansh, Yashraj, Chetana, Vasudha, Riyaa, Tarika and Harshad (each speaks all supported languages).","uniqueKey":"voice","typeLabel":"string"},"language":{"type":"string","title":"Language","description":"Language code. Use `auto`, `hi-IN`, `en-IN`, `hi-en`, `ta-IN`, `te-IN`, `kn-IN`, `ml-IN`, `mr-IN`, `pa-IN`, `bn-IN`, or `gu-IN`.","uniqueKey":"language","typeLabel":"string"},"speed":{"type":"number","title":"Speed","description":"Playback speed multiplier. Range: 0.85–1.15.","uniqueKey":"speed","typeLabel":"number"}},"type":"object","required":["text","model","audio_config"],"title":"TextToSpeechRequest","description":"Request body for TTS inference.","example":{"text":"नमस्ते, आप कैसे हैं?","voice":"Nalini","model":"timbre-v2.5","language":"hi-IN","speed":1,"audio_config":{"encoding":"linear_pcm","container":"wav","num_channels":1,"sample_rate":48000,"sample_width":2}},"uniqueKey":"","typeLabel":"TextToSpeechRequest · object"},"examples":{"Example":{"title":"Example","value":{"text":"नमस्ते, आप कैसे हैं?","voice":"Nalini","model":"timbre-v2.5","language":"hi-IN","speed":1,"audio_config":{"encoding":"linear_pcm","container":"wav","num_channels":1,"sample_rate":48000,"sample_width":2}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"98c190d4-3742-4ba2-b988-d51a771b1f44":{"description":"Successful Server-Sent Events stream","content":{"text/event-stream":{"schema":{"type":"string","uniqueKey":"","typeLabel":"string"},"example":"event: start\ndata: {\"status\": \"streaming_started\", \"text\": \"Hello\"}\n\nevent: chunk\ndata: {\"chunk_index\": 1, \"audio\": \"\u003cbase64>\", \"is_final\": false}\n\nevent: complete\ndata: {\"chunk_index\": 2, \"audio\": \"\", \"is_final\": true}","examples":{"Example":{"title":"Example","value":"event: start\ndata: {\"status\": \"streaming_started\", \"text\": \"Hello\"}\n\nevent: chunk\ndata: {\"chunk_index\": 1, \"audio\": \"\u003cbase64>\", \"is_final\": false}\n\nevent: complete\ndata: {\"chunk_index\": 2, \"audio\": \"\", \"is_final\": true}"}},"exampleType":"examples"}},"exampleType":"examples"},"88489d3d-b05c-4d6d-8f9a-cc066f837651":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","description":"Error body returned for invalid requests and unexpected failures.","properties":{"success":{"type":"boolean","example":false,"uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","description":"What went wrong.","uniqueKey":"message","typeLabel":"string"},"status_code":{"type":"integer","description":"The HTTP status code.","uniqueKey":"status_code","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"example":{"success":false,"message":"Invalid request: Field required at body -> text","status_code":400},"examples":{"Example":{"title":"Example","value":{"success":false,"message":"Invalid request: Field required at body -> text","status_code":400}}},"exampleType":"examples"}},"exampleType":"examples"},"af7ca4d4-df38-4063-b19e-32c252746906":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":false,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","properties":{"type":{"type":"string","description":"A short error code string (e.g., 'INVALID_REQUEST_ERROR').","uniqueKey":"error.type","typeLabel":"string"},"message":{"type":"string","description":"A descriptive error message.","uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"success":false,"error":{"type":"FORBIDDEN","message":"You do not have permission to access this resource. Check your API key, organization status, or available credits."}},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"type":"FORBIDDEN","message":"You do not have permission to access this resource. Check your API key, organization status, or available credits."}}}},"exampleType":"examples"}},"exampleType":"examples"},"16143fe7-f81c-4abf-96f7-282cf2d861cb":{"description":"Too Many Requests","content":{"application/json":{"schema":{"type":"object","description":"Authentication and rate-limit errors (401, 403, 429).","properties":{"detail":{"type":"object","properties":{"error_code":{"type":"string","description":"One of `MISSING_API_KEY`, `INVALID_API_KEY`, `SCOPE_NOT_ALLOWED`, `RATE_LIMITED`.","uniqueKey":"detail.error_code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"detail.message","typeLabel":"string"},"status_code":{"type":"integer","uniqueKey":"detail.status_code","typeLabel":"integer"}},"uniqueKey":"detail","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"detail":{"error_code":"RATE_LIMITED","message":"Only 1 active request is allowed at a time. Wait for your current request to finish before sending another.","status_code":429}},"examples":{"Example":{"title":"Example","value":{"detail":{"error_code":"RATE_LIMITED","message":"Only 1 active request is allowed at a time. Wait for your current request to finish before sending another.","status_code":429}}}},"exampleType":"examples"}},"exampleType":"examples"},"50f29dec-bc41-47e9-aacd-43883cee734e":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"object","description":"Error body returned for invalid requests and unexpected failures.","properties":{"success":{"type":"boolean","example":false,"uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","description":"What went wrong.","uniqueKey":"message","typeLabel":"string"},"status_code":{"type":"integer","description":"The HTTP status code.","uniqueKey":"status_code","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"example":{"success":false,"message":"We are facing technical difficulties. Please try again later.","status_code":500},"examples":{"Example":{"title":"Example","value":{"success":false,"message":"We are facing technical difficulties. Please try again later.","status_code":500}}},"exampleType":"examples"}},"exampleType":"examples"},"2695940b-e5d9-4316-a0ad-ad1bb7bd8476":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":false,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","properties":{"type":{"type":"string","description":"A short error code string (e.g., 'INVALID_REQUEST_ERROR').","uniqueKey":"error.type","typeLabel":"string"},"message":{"type":"string","description":"A descriptive error message.","uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"success":false,"error":{"type":"SERVICE_UNAVAILABLE","message":"Text-to-speech service is temporarily unavailable."}},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"type":"SERVICE_UNAVAILABLE","message":"Text-to-speech service is temporarily unavailable."}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"8cf5af82-6944-4d22-8b84-3340547f7aaa":{"Key":{"name":"X-API-Key-ID","type":"apiKey","in":"header"}}},"servers":{"6f76dffd-5ad4-40b3-a4f8-4449b0a7c412":{"url":"https://api.vachana.ai","description":"Production server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"name":"X-API-Key-ID","type":"apiKey","in":"header"},"schema":{"title":"X-API-Key-ID","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"Key","name":"X-API-Key-ID"}],"title":"Key"}]},"originalFileLocation":"TTS.yml"},"subdomain":"gnaniinnovationsprivatelimited","siteName":"Gnani AI Documentation","title":"Text-to-Speech (Streaming) - Gnani AI Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-28T05:36:56.400Z","originalFileLocation":"api/TTS/tts-sse.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Stream audio in chunks as it\u0026#x27;s generated via Server-Sent Events.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Gnani AI Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/gnaniinnovationsprivatelimited/b9mY1NvMwd3p02_R/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/gnaniinnovationsprivatelimited/b9mY1NvMwd3p02_R/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/gnaniinnovationsprivatelimited/b9mY1NvMwd3p02_R/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/gnaniinnovationsprivatelimited/b9mY1NvMwd3p02_R/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/gnaniinnovationsprivatelimited/b9mY1NvMwd3p02_R/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/gnaniinnovationsprivatelimited/b9mY1NvMwd3p02_R/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/gnaniinnovationsprivatelimited/b9mY1NvMwd3p02_R/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/gnaniinnovationsprivatelimited/b9mY1NvMwd3p02_R/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/gnaniinnovationsprivatelimited/b9mY1NvMwd3p02_R/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Text-to-Speech (Streaming) - Gnani AI Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Stream audio in chunks as it\u0026#x27;s generated via Server-Sent Events.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Gnani AI Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.gnani.ai/api/TTS/tts-sse\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://gnaniinnovationsprivatelimited.mintlify.site/_mintlify/api/og/v2?division=Text-to-Speech\u0026amp;title=Text-to-Speech+%28Streaming%29\u0026amp;description=Stream+audio+in+chunks+as+it%27s+generated+via+Server-Sent+Events.\u0026amp;theme=8b96a8e5debb948dd7f8ccc7\u0026amp;signature=054e8175d98311c263bd978007c39e2952e23620e67ca1b010f4e8ee2799b349\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Text-to-Speech (Streaming) - Gnani AI Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Stream audio in chunks as it\u0026#x27;s generated via Server-Sent Events.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://gnaniinnovationsprivatelimited.mintlify.site/_mintlify/api/og/v2?division=Text-to-Speech\u0026amp;title=Text-to-Speech+%28Streaming%29\u0026amp;description=Stream+audio+in+chunks+as+it%27s+generated+via+Server-Sent+Events.\u0026amp;theme=8b96a8e5debb948dd7f8ccc7\u0026amp;signature=054e8175d98311c263bd978007c39e2952e23620e67ca1b010f4e8ee2799b349\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/gnaniinnovationsprivatelimited/b9mY1NvMwd3p02_R/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Gnani AI Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1A1A1A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.gnani.ai/api/TTS/tts-sse\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api/TTS/tts-sse.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.gnani.ai/#organization\",\"name\":\"Gnani AI Documentation\",\"url\":\"https://docs.gnani.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/gnaniinnovationsprivatelimited/07TQaHxEIXJZr-iJ/logo/favicon.svg?fit=max\u0026auto=format\u0026n=07TQaHxEIXJZr-iJ\u0026q=85\u0026s=feca06a904160c2b661bfa77fe1f90c4\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.gnani.ai#website\",\"name\":\"Gnani AI Documentation\",\"url\":\"https://docs.gnani.ai\",\"publisher\":{\"@id\":\"https://docs.gnani.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.gnani.ai/api/TTS/tts-sse#webpage\",\"url\":\"https://docs.gnani.ai/api/TTS/tts-sse\",\"name\":\"Text-to-Speech (Streaming)\",\"description\":\"Stream audio in chunks as it's generated via Server-Sent Events.\",\"dateModified\":\"2026-10-28T05:36:56.400Z\",\"isPartOf\":{\"@id\":\"https://docs.gnani.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.gnani.ai/api/TTS/tts-sse#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.gnani.ai/api/TTS/tts-sse#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"APIs\",\"item\":\"https://docs.gnani.ai/api/STT/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Text-to-Speech\",\"item\":\"https://docs.gnani.ai/api/TTS/available-voices\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Text-to-Speech (Streaming)\",\"item\":\"https://docs.gnani.ai/api/TTS/tts-sse\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.gnani.ai/api/TTS/tts-sse#apireference\",\"headline\":\"Text-to-Speech (Streaming)\",\"name\":\"Text-to-Speech (Streaming)\",\"description\":\"Stream audio in chunks as it's generated via Server-Sent Events.\",\"url\":\"https://docs.gnani.ai/api/TTS/tts-sse\",\"mainEntityOfPage\":{\"@id\":\"https://docs.gnani.ai/api/TTS/tts-sse#webpage\"},\"dateModified\":\"2026-10-28T05:36:56.400Z\",\"publisher\":{\"@id\":\"https://docs.gnani.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.gnani.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Gnani AI Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Gnani AI Documentation","nav":{"global":null,"tabs":[{"tab":"Home","pages":[{"title":"Home","href":""}]},{"tab":"Gnani AI APIs","groups":[{"group":"Gnani APIs","pages":[{"title":"Introduction – Gnani Speech APIs","href":"/api/introduction/introduction"},{"title":"Quick Start","href":"/api/introduction/quick-start"},{"title":"LiveKit Plugin","href":"/livekit/introduction"},{"title":"Pipecat Plugin","href":"/pipecat/introduction"},{"group":"Python SDK","pages":[{"title":"Python SDK","href":"/python-sdk/introduction"},{"title":"Python SDK — Speech-to-Text","href":"/python-sdk/speech-to-text"},{"title":"Python SDK — Batch Speech-to-Text","href":"/python-sdk/speech-to-text-batch"},{"title":"Python SDK — Text-to-Speech","href":"/python-sdk/text-to-speech"}]}]},{"group":"APIs","pages":[{"group":"Speech-to-Text","pages":[{"title":"Speech-to-Text","sidebarTitle":"Overview","href":"/api/STT/overview"},{"group":"Models","pages":[{"title":"Models","sidebarTitle":"Overview","href":"/api/STT/models/overview"},{"title":"Prisma v3.0","sidebarTitle":"Prisma v3.0","tag":"New","href":"/api/STT/models/prisma-v3"},{"title":"Prisma v2.5","sidebarTitle":"Prisma v2.5","tag":"Default","href":"/api/STT/models/prisma-v2-5"}]},{"title":"REST transcription","sidebarTitle":"REST transcription","openapi":"POST /stt/v3","href":"/api/STT/speech-to-text"},{"title":"Realtime streaming","sidebarTitle":"Realtime streaming","asyncapi":"api/STT/stt-websocket.yml stt","href":"/api/STT/stt-websocket"},{"group":"Batch transcription","pages":[{"title":"Batch transcription","sidebarTitle":"Batch transcription","href":"/api/STTBatch/Introduction"},{"title":"Create job","openapi":"STTBatch.yml POST /stt/v3/batch/jobs","href":"/api/STTBatch/Create_Job"},{"title":"Start job","openapi":"STTBatch.yml POST /stt/v3/batch/jobs/{job_id}/start","href":"/api/STTBatch/Start_Job"},{"title":"Get job status","openapi":"STTBatch.yml GET /stt/v3/batch/jobs/{job_id}","href":"/api/STTBatch/Get_Job"},{"title":"List jobs","openapi":"STTBatch.yml GET /stt/v3/batch/jobs","href":"/api/STTBatch/List_Jobs"},{"title":"Get job files","openapi":"STTBatch.yml GET /stt/v3/batch/jobs/{job_id}/files","href":"/api/STTBatch/Get_Job_Files"},{"title":"Cancel job","openapi":"STTBatch.yml POST /stt/v3/batch/jobs/{job_id}/cancel","href":"/api/STTBatch/Cancel_Job"}]},{"title":"Supported languages","sidebarTitle":"Supported languages","href":"/api/STT/languages"},{"title":"Limits","tag":"New","href":"/api/STT/limits"}]},{"group":"Text-to-Speech","pages":[{"title":"Available Voices","hidden":true,"href":"/api/TTS/available-voices"},{"title":"Text-to-Speech (REST)","openapi":"POST /api/v1/tts/inference","description":"Synchronous text-to-speech with full audio returned in one response.","href":"/api/TTS/tts-inference"},{"title":"Text-to-Speech (Streaming)","openapi":"POST /api/v1/tts/sse","href":"/api/TTS/tts-sse"},{"title":"Text-to-Speech (Realtime)","asyncapi":"api/TTS/websocket.yml tts","description":"Real-time text-to-speech with streaming audio via WebSocket.","href":"/api/TTS/tts-websocket"},{"title":"Audio Tags","tag":"New","href":"/api/TTS/tts-audio-tags"},{"title":"Text Normalization Guide","href":"/api/TTS/tts-input-formating"}]},{"group":"Voice Cloning","pages":[{"title":"Voice Clone Embeddings","openapi":"POST /api/v1/tts/voice-clone/embeddings","href":"/api/VC/voice-clone-embeddings"},{"title":"Voice Cloned TTS (REST)","openapi":"VC.yml POST /api/v1/tts/inference","href":"/api/VC/vc-inference"},{"title":"Voice Cloned TTS (Streaming)","openapi":"VC.yml POST /api/v1/tts/sse","href":"/api/VC/vc-sse"},{"title":"Voice Cloned TTS (Realtime)","asyncapi":"api/VC/vc-websocket.yml vc","href":"/api/VC/vc-websocket"}]}]},{"group":"Use Cases","pages":[{"title":"Podcast Transcription with Speaker Labels","href":"/api/use-cases/podcast-transcription"},{"title":"Call Analytics Pipeline","href":"/api/use-cases/call-analytics"},{"title":"Real-Time Quality \u0026 Compliance Monitoring","href":"/api/use-cases/real-time-compliance"}]},{"group":"Reference","pages":[{"title":"Error Reference","sidebarTitle":"Error Reference","tag":"New","href":"/api/introduction/errors"}]}]},{"tab":"Gnani AI Agents","pages":[{"title":"Gnani AI Agents","href":"/introduction"}]},{"tab":"Gnani AI Agent Builder APIs","pages":[{"title":"Gnani AI Agent Builder APIs","href":"/Platform/platform-introduction"}]}]},"basePath":"","title":"Text-to-Speech (Streaming) - Gnani AI Documentation","buildId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","deploymentId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-i2a3QZ8E.js","utils-ChLwp8m0.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DRktVTDc.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CA2pEs4T.js","snippetPresets-ClQ6XrKD.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Ct_Lv36y.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-Cn2PYw9e.js","shallow-rkyymjXQ.js","getApiPlaygroundDisplay-BB9vkXtE.js","CodeSnippet-Bm5RU7m1.js","CodeSnippets-BgU9Deuz.js","Page-BUDYNlhG.js","getPastedJson-BD-6NNum.js","icon-8Z6tud2e.js","MethodPill-Tuzr4g3V.js","DuplicateIcon-0ceWFYhN.js","createIcon-FBXow_ST.js","DynamicMarkdown-CD8713Yy.js","SectionHeading-7zgzQbH-.js","axios-vUo_bRtp.js","Markdown-D7Ofw1oz.js","clsx-eKJ4rcii.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CwjSCXIK.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-9EK5IAXV.js"]}