{
"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 (REST)
Synchronous text-to-speech with full audio returned in one response.
{
"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.
Get the complete synthesized audio in one response. Best for downloads or batch processing. For streaming playback, see TTS Streaming or 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.
A successful request returns 200 OK with raw binary audio in the format specified by audio_config.container.
Status
Meaning
200
Audio returned as binary in the requested format
Errors:Text-to-Speech and Voice Cloning (REST and SSE) return errors in a flat body, not the error.type envelope used by Speech-to-Text:
{"success": false, "message": "Invalid request: Field required at body -> text", "status_code": 400}
HTTP
When
Example message
400
A parameter is missing or invalid: text, voice, model, speed (the allowed range depends on the model), or a value in audio_config
Invalid request: Value error, sample_rate must be one of [8000, 16000, 22050, 24000, 44100, 48000], got 12345 at body -> audio_config -> sample_rate
400
Unknown model, or vachana-vc-v1 without a speaker_embedding
Model 'bogus' is not supported. The supported models are "timbre-v2.5", "timbre-v3.0". …
400
Empty audio sent to the embeddings endpoint
Audio file is empty
500
Unexpected failure, including text that is too long and an invalid speaker_embedding or reference audio
We are facing technical difficulties. Please try again later.
Authentication and rate-limit errors use the shape shown below. Some validation failures on the embeddings endpoint can also return 422 with a {"detail": [...]} body.Authentication and rate-limit errors do not use the success / error envelope. They look like this:
{"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}}
HTTP
detail.error_code
Typical cause
401
MISSING_API_KEY
The X-API-Key-ID header is missing or empty.
401
INVALID_API_KEY
The key is not valid ("message": "Unauthorized").
402
not verified
Insufficient credit
403
SCOPE_NOT_ALLOWED
The key lacks the scope for this service (for example Service 'STT' not in allowed scopes).
429
RATE_LIMITED
Too many requests for your account. For example, an account limited to one active request at a time returns 429 while a request is still running. The response has no Retry-After header: wait a moment, then retry with backoff.
The same shapes are returned by REST, Batch, Text-to-Speech, Voice Cloning and the Realtime handshake (as an HTTP response before the WebSocket opens).See Error Reference for all Speech API errors.
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-inference","slug":"/api/TTS/tts-inference","pageMetadata":{"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"},"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: \"Synchronous text-to-speech with full audio returned in one response.\"\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:[`Get the complete synthesized audio in one response. Best for downloads or batch processing. For streaming playback, see `,_jsx(_components.a,{href:`/api/TTS/tts-sse`,children:`TTS Streaming`}),` or `,_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/inference`})}),`\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(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(_components.p,{children:[`A successful request returns `,_jsx(_components.code,{children:`200 OK`}),` with raw binary audio in the format specified by `,_jsx(_components.code,{children:`audio_config.container`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Status`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Meaning`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`200`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Audio returned as binary in the requested format`})]})})]}),`\n`,_jsx(_components.p,{children:`Errors:`}),`\n`,_jsxs(_components.p,{children:[`Text-to-Speech and Voice Cloning (REST and SSE) return errors in a flat body, not the `,_jsx(_components.code,{children:`error.type`}),` envelope used by Speech-to-Text:`]}),`\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:`\"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_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 request: Field required at body -> text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"status_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`400`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`HTTP`}),_jsx(_components.th,{children:`When`}),_jsxs(_components.th,{children:[`Example `,_jsx(_components.code,{children:`message`})]})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsxs(_components.td,{children:[`A parameter is missing or invalid: `,_jsx(_components.code,{children:`text`}),`, `,_jsx(_components.code,{children:`voice`}),`, `,_jsx(_components.code,{children:`model`}),`, `,_jsx(_components.code,{children:`speed`}),` (the allowed range depends on the model), or a value in `,_jsx(_components.code,{children:`audio_config`})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Invalid request: Value error, sample_rate must be one of [8000, 16000, 22050, 24000, 44100, 48000], got 12345 at body -> audio_config -> sample_rate`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsxs(_components.td,{children:[`Unknown `,_jsx(_components.code,{children:`model`}),`, or `,_jsx(_components.code,{children:`vachana-vc-v1`}),` without a `,_jsx(_components.code,{children:`speaker_embedding`})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Model 'bogus' is not supported. The supported models are \"timbre-v2.5\", \"timbre-v3.0\". …`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:`Empty audio sent to the embeddings endpoint`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Audio file is empty`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`500`})}),_jsxs(_components.td,{children:[`Unexpected failure, including text that is too long and an invalid `,_jsx(_components.code,{children:`speaker_embedding`}),` or reference audio`]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`We are facing technical difficulties. Please try again later.`})})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Authentication and rate-limit errors use the `,_jsx(_components.a,{href:`/api/introduction/errors#authentication-and-rate-limits`,children:`shape shown below`}),`. Some validation failures on the embeddings endpoint can also return `,_jsx(_components.code,{children:`422`}),` with a `,_jsx(_components.code,{children:`{\"detail\": [...]}`}),` body.`]}),`\n`,_jsxs(_components.p,{children:[`Authentication and rate-limit errors do not use the `,_jsx(_components.code,{children:`success`}),` / `,_jsx(_components.code,{children:`error`}),` envelope. They look like this:`]}),`\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:`\"detail\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"error_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"RATE_LIMITED\"`}),_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:`\"Only 1 active request is allowed at a time. Wait for your current request to finish before sending another.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"status_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`429`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}}`})]}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`HTTP`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`detail.error_code`})}),_jsx(_components.th,{children:`Typical cause`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`MISSING_API_KEY`})}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`X-API-Key-ID`}),` header is missing or empty.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`INVALID_API_KEY`})}),_jsxs(_components.td,{children:[`The key is not valid (`,_jsx(_components.code,{children:`\"message\": \"Unauthorized\"`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`402`})}),_jsx(_components.td,{children:`not verified`}),_jsx(_components.td,{children:`Insufficient credit`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`SCOPE_NOT_ALLOWED`})}),_jsxs(_components.td,{children:[`The key lacks the scope for this service (for example `,_jsx(_components.code,{children:`Service 'STT' not in allowed scopes`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`RATE_LIMITED`})}),_jsxs(_components.td,{children:[`Too many requests for your account. For example, an account limited to one active request at a time returns `,_jsx(_components.code,{children:`429`}),` while a request is still running. The response has no `,_jsx(_components.code,{children:`Retry-After`}),` header: wait a moment, then retry with backoff.`]})]})]})]}),`\n`,_jsx(_components.p,{children:`The same shapes are returned by REST, Batch, Text-to-Speech, Voice Cloning and the Realtime handshake (as an HTTP response before the WebSocket opens).`}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/api/introduction/errors`,children:`Error Reference`}),` for all Speech API errors.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`code-example`,children:`Code Example`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`18`,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:`18`,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/inference`}),_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:` \"num_channels\": 1,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"sample_width\": 2,`})}),`\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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`}),_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:` --output`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` response.wav`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`24`,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:`24`,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/inference\"`}),_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:` num_channels:`}),_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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` sample_width:`}),_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:`#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:` audio`}),_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:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`arrayBuffer`}),_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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Received audio:\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`audio`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`byteLength`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"bytes\"`}),_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`})]}),`\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/inference\"`}),_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:` \"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:`#0A3069`,\"--shiki-dark\":`#CE9178`},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:`#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`,_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:`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:`\"response.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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` f.write(response.content)`})}),`\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 official Python SDK handles authentication headers and binary audio responses automatically.`}),`\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:` GnaniTTSClient`})]}),`\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:` GnaniTTSClient(`}),_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:` GnaniTTSClient`})]}),`\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:` GnaniTTSClient()`})]}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`3`,id:`synthesize-speech`,children:`Synthesize Speech`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,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:`13`,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:` GnaniTTSClient`})]}),`\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:` GnaniTTSClient(`}),_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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`audio `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.synthesize(`})]}),`\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`}),`\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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` f.write(audio)`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`custom-audio-config`,children:`Custom Audio Config`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`18`,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:`18`,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:` GnaniTTSClient, 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:` GnaniTTSClient(`}),_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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`audio `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.synthesize(`})]}),`\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`}),`\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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` f.write(audio)`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{})]})}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 (REST)","openapi":"POST /api/v1/tts/inference","description":"Synchronous text-to-speech with full audio returned in one response.","href":"/api/TTS/tts-inference"}}},"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":"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":"Synthesize Speech","slug":"synthesize-speech","depth":3,"children":[]},{"title":"Custom Audio Config","slug":"custom-audio-config","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/gnaniinnovationsprivatelimited/aa125a548bc31de7/api-page-index.js"],"openApiReferenceData":{"operation":{"summary":"TTS Inference","operationId":"tts_inference_api_v1_tts_inference_post","parameters":["0076f20b-695e-4e2b-991b-a8354c5240f2"],"requestBody":"c75838d0-3e72-4b94-9fa3-425c9c1a3712","responses":{"200":"5855e4b8-4485-4450-91d4-9248f927d3bd","400":"6f9157be-a4ae-4afb-a205-123a78b91a51","403":"61de44ab-6639-46b3-ae51-bfb36a450aef","429":"8186c375-f8d2-4b5b-ab0c-911234130b6a","500":"fd554717-3d60-4815-8bbb-cd007ef795d8","503":"d766e9e3-c28e-4dad-b74f-f3004b65f0ca"},"method":"post","type":"path","servers":["6f76dffd-5ad4-40b3-a4f8-4449b0a7c412"],"security":[],"path":"/api/v1/tts/inference","baseUrlOptions":["https://api.vachana.ai"],"title":"TTS Inference","description":"Synchronous text-to-speech with full audio returned in one response.","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":{"0076f20b-695e-4e2b-991b-a8354c5240f2":{"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":{"5855e4b8-4485-4450-91d4-9248f927d3bd":{"description":"Successful audio synthesis","content":{"audio/wav":{"schema":{"type":"string","format":"binary","uniqueKey":"","typeLabel":"file"},"examples":{"Example":{"title":"Example","value":"\u003cstring>"}},"exampleType":"generated"},"audio/mpeg":{"schema":{"type":"string","format":"binary","uniqueKey":"","typeLabel":"file"},"examples":{"Example":{"title":"Example","value":"\u003cstring>"}},"exampleType":"generated"},"audio/ogg":{"schema":{"type":"string","format":"binary","uniqueKey":"","typeLabel":"file"},"examples":{"Example":{"title":"Example","value":"\u003cstring>"}},"exampleType":"generated"}},"exampleType":"generated"},"6f9157be-a4ae-4afb-a205-123a78b91a51":{"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"},"61de44ab-6639-46b3-ae51-bfb36a450aef":{"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"},"8186c375-f8d2-4b5b-ab0c-911234130b6a":{"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"},"fd554717-3d60-4815-8bbb-cd007ef795d8":{"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"},"d766e9e3-c28e-4dad-b74f-f3004b65f0ca":{"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":{"4a847165-908c-4957-9a49-11c203dbcb19":{"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 (REST) - Gnani AI Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-28T05:36:56.400Z","originalFileLocation":"api/TTS/tts-inference.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=\"Synchronous text-to-speech with full audio returned in one response.\">\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 (REST) - Gnani AI Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Synchronous text-to-speech with full audio returned in one response.\">\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-inference\">\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+%28REST%29\u0026amp;description=Synchronous+text-to-speech+with+full+audio+returned+in+one+response.\u0026amp;theme=8b96a8e5debb948dd7f8ccc7\u0026amp;signature=67436397c4c287250dc66cfe914dce1fa4fa7707db3875013bd8f3a245c09e18\">\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 (REST) - Gnani AI Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Synchronous text-to-speech with full audio returned in one response.\">\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+%28REST%29\u0026amp;description=Synchronous+text-to-speech+with+full+audio+returned+in+one+response.\u0026amp;theme=8b96a8e5debb948dd7f8ccc7\u0026amp;signature=67436397c4c287250dc66cfe914dce1fa4fa7707db3875013bd8f3a245c09e18\">\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-inference\">\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-inference.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-inference#webpage\",\"url\":\"https://docs.gnani.ai/api/TTS/tts-inference\",\"name\":\"Text-to-Speech (REST)\",\"description\":\"Synchronous text-to-speech with full audio returned in one response.\",\"dateModified\":\"2026-10-28T05:36:56.400Z\",\"isPartOf\":{\"@id\":\"https://docs.gnani.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.gnani.ai/api/TTS/tts-inference#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.gnani.ai/api/TTS/tts-inference#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 (REST)\",\"item\":\"https://docs.gnani.ai/api/TTS/tts-inference\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.gnani.ai/api/TTS/tts-inference#apireference\",\"headline\":\"Text-to-Speech (REST)\",\"name\":\"Text-to-Speech (REST)\",\"description\":\"Synchronous text-to-speech with full audio returned in one response.\",\"url\":\"https://docs.gnani.ai/api/TTS/tts-inference\",\"mainEntityOfPage\":{\"@id\":\"https://docs.gnani.ai/api/TTS/tts-inference#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","description":"Audio, request and session limits for Speech-to-Text.","tag":"New","href":"/api/STT/limits"}]},{"group":"Text-to-Speech","pages":[{"title":"Available Voices","description":"Voice catalogs for Gnani Timbre v2.5 and Timbre v3.0.","hidden":true,"href":"/api/TTS/available-voices"},{"title":"Text-to-Speech (REST)","openapi":"POST /api/v1/tts/inference","href":"/api/TTS/tts-inference"},{"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"},{"title":"Text-to-Speech (Realtime)","asyncapi":"api/TTS/websocket.yml tts","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 (REST) - 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"]}