myvocal_v3_accent_enhance: optional. Omit it (or send auto) for automatic detection. The Accent model has its own code set (40 language codes plus auto); see TTS Models & Migration. A plain V3 code the Accent model does not support (for example hmn) is rejected with code = 10004. Legacy mapped enum values such as US_ENGLISH are not Accent codes; use en.
Set myvocal_v3_5 to request Model V3.5 High Quality.
Set myvocal_v3 to request the V3 path.
Set myvocal_v3_accent_enhance to request the Accent model path.
When the Accent model is requested but its execution path is unavailable, the response is the standard generation error envelope (code = 10003). The request is never silently served by a different model.
Model V3.5 High Quality defaults to 0.5. Model V2 and Model V3 default to 0.7 when this value is omitted.
A decimal in the range 0.1 to 1 inclusive. Values below 0.1 or above 1 are rejected; no fixed step is enforced.
When your parameters are set lower, the emotional variation of the TTS audio will be more abundant. Even for the same text, the effects generated multiple times will be different. You can choose the most suitable one by generating the same text’s TTS audio multiple times.
When your parameters are set higher, the emotion of the TTS audio will tend to be consistent.
Accent model note: a value inside the normal legal range (0.1 to 1) is accepted for compatibility but has no effect on myvocal_v3_accent_enhance. An out-of-range value is still rejected with code = 10006.
For myvocal_v3, explicit legal values are forwarded without rounding into named presets. This API contract does not define additional preset mappings. Continue sending the value in voiceSettings.stability, in 0–1 units; a website display value such as 25 corresponds to 0.25, not 25. Website controls do not change this API’s inclusive 0.1–1 range: 0 is rejected with 10006 for every model.
For myvocal_v3_accent_enhance, plain text is the supported minimal path. The inline [tag] prompt control documented for myvocal_v3 is not documented as equivalent, and the service does not rewrite your text. Send plain text for the Accent model.
An HTTP 200 does not by itself mean the request succeeded. Read Content-Type before trusting the body:
audio/* (normally audio/mpeg): the audio payload described above.
any JSON content type: the standard result envelope with a non-success code (see Common errors below).
The two paths fail differently. Before any audio is sent, a rejected or failed request is answered with the JSON envelope above. After audio has started, the connection is terminated instead of appending a JSON body, because appending JSON to a partial audio body would corrupt it. Treat a short or interrupted download as a failed request, not as a complete audio file.
Invalid language option. (code = 10004): non-V3/default path is missing or using an unsupported language value; or the Accent model received a code outside its own language list.
VOICE_NOT_FOUND (code = 10005): voiceId is invalid or not available under this API key.
Invalid stability option. (code = 10006): voiceSettings.stability is outside the legal range.
code = 10003: the Accent model path was requested but its execution path is unavailable. The request is not silently served by another model.
code = -1: upstream or backend failed to complete generation.
Omit language for automatic detection. This model has its own language list. Unsupported codes return 10004; legal stability remains inclusive 0.1–1. Errors before audio use the existing JSON envelope. Errors after audio begins terminate the transfer without appending JSON; retrying is a new request, not an idempotent continuation.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"MyVocal.AI","colors":{"primary":"#9563FF","light":"#AE87FF","dark":"#0D001D"},"favicon":"https://mintcdn.com/wiz-myvocal/kDrQNVoFkA5WOhL_/favicon.svg?fit=max\u0026auto=format\u0026n=kDrQNVoFkA5WOhL_\u0026q=85\u0026s=b815e0db5883be2f70d9b10e63c330cd","logo":{"light":"https://mintcdn.com/wiz-myvocal/kDrQNVoFkA5WOhL_/logo/light.svg?fit=max\u0026auto=format\u0026n=kDrQNVoFkA5WOhL_\u0026q=85\u0026s=1d17c658234c347ae43c180de792bea5","dark":"https://mintcdn.com/wiz-myvocal/kDrQNVoFkA5WOhL_/logo/dark.png?fit=max\u0026auto=format\u0026n=kDrQNVoFkA5WOhL_\u0026q=85\u0026s=3d789334f44d9a10eaf0dbd26dadfaa3"},"background":{"decoration":null,"color":{"light":null,"dark":"#090014"}},"navbar":{"links":[{"label":"API Reference","href":"/api-reference/overview"}],"primary":{"type":"button","label":"Home Page","href":"https://www.myvocal.ai"}},"seo":{"metatags":{"canonical":"https://docs.myvocal.ai"},"indexing":"navigable"},"footer":{"socials":{"youtube":"https://www.youtube.com/@myvocalai"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"wiz-myvocal","hasAudioNarration":false,"actualSubdomain":"wiz-myvocal","customDomains":[],"gitSource":{"type":"github","owner":"myvocal-ai","repo":"api","deployBranch":"main","contentDirectory":"myvocal-api-docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6af0789710764caba8e8690e","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"Speech to Text","count":24},{"language":"default","tag":"Interpretation","count":23},{"language":"default","tag":"Interpretation API reference","count":20},{"language":"default","tag":"Text to Music","count":16},{"language":"default","tag":"STT API reference","count":16},{"language":"default","tag":"Music API reference","count":15},{"language":"default","tag":"Create and generate","count":10},{"language":"default","tag":"Text to Speech","count":9},{"language":"default","tag":"Manage projects","count":9},{"language":"default","tag":"Voice cloning","count":8}]},"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":"editor-metadata","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":[],"page":{"pagePath":"api-reference/tts/ttsStream","slug":"/api-reference/tts/ttsStream","pageMetadata":{"title":"Stream speech","api":"POST https://api.myvocal.ai/sound_clone/api/v1/tts/stream","description":"Synthesize text and return the audio as a streaming response.","href":"/api-reference/tts/ttsStream"},"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: \"Synthesize text and return the audio as a streaming 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`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Info,ParamField,ResponseField,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(`sub`,{children:[_jsx(_components.strong,{children:`Text to Speech`}),` · Workflow: `,_jsx(_components.a,{href:`/quickstart`,children:`TTS quickstart`}),` · Models: `,_jsx(_components.a,{href:`/api-reference/tts/models`,children:`TTS Models \u0026 Migration`})]}),`\n`,_jsx(Heading,{level:`3`,id:`header`,children:`Header`}),`\n`,_jsx(ParamField,{header:`accessKey`,type:`string`,required:true,id:`param-access-key`,children:_jsxs(_components.p,{children:[`Your API key. See `,_jsx(_components.a,{href:`/api-reference/authentication`,children:`Authentication`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`body`,children:`Body`}),`\n`,_jsx(ParamField,{body:`voiceId`,type:`string`,required:true,id:`param-voice-id`,children:_jsxs(_components.p,{children:[`Voice ID returned by `,_jsx(`code`,{children:`GET /sound_clone/api/v1/voices`}),`.\n`,_jsxs(`div`,{children:[`For `,_jsx(`code`,{children:`myvocal_v3_accent_enhance`}),`, use a voice returned by `,_jsx(`code`,{children:`GET /sound_clone/api/v1/voices?modelId=myvocal_v3_accent_enhance`}),`.`]})]})}),`\n`,_jsx(ParamField,{body:`title`,type:`string`,id:`param-title`,children:_jsx(_components.p,{children:`Optional title for the generated record.`})}),`\n`,_jsx(ParamField,{body:`text`,type:`string`,required:true,id:`param-text`,children:_jsx(_components.p,{children:`Text to synthesize.`})}),`\n`,_jsx(ParamField,{body:`language`,type:`string`,id:`param-language`,children:_jsxs(_components.p,{children:[`Language selector.\n`,_jsxs(`div`,{children:[_jsx(`code`,{children:`myvocal_v3_5`}),`: optional model-specific ISO code; omit it for Auto. See the `,_jsx(_components.a,{href:`/api-reference/tts/v35-language-codes`,children:`Model V3.5 language table`}),`.`]}),`\n`,_jsx(`div`,{children:`Default/V2 path: required and must use existing mapped language values.`}),`\n`,_jsxs(`div`,{children:[_jsx(`code`,{children:`myvocal_v3`}),`: optional. If provided, it is forwarded to upstream as `,_jsx(`code`,{children:`language`}),`. If omitted, upstream auto-detect is used.`]}),`\n`,_jsxs(`div`,{children:[`See supported V3 codes in `,_jsx(_components.a,{href:`/api-reference/tts/v3-language-codes`,children:`V3 Language Codes`}),` (98 languages).`]}),`\n`,_jsxs(`div`,{children:[_jsx(`code`,{children:`myvocal_v3_accent_enhance`}),`: optional. Omit it (or send `,_jsx(`code`,{children:`auto`}),`) for automatic detection. The Accent model has its own code set (40 language codes plus `,_jsx(`code`,{children:`auto`}),`); see `,_jsx(_components.a,{href:`/api-reference/tts/models`,children:`TTS Models \u0026 Migration`}),`. A plain V3 code the Accent model does not support (for example `,_jsx(`code`,{children:`hmn`}),`) is rejected with `,_jsx(`code`,{children:`code = 10004`}),`. Legacy mapped enum values such as `,_jsx(`code`,{children:`US_ENGLISH`}),` are not Accent codes; use `,_jsx(`code`,{children:`en`}),`.`]})]})}),`\n`,_jsx(ParamField,{body:`modelId`,type:`string`,id:`param-model-id`,children:_jsxs(_components.p,{children:[`Optional explicit model selector.\n`,_jsx(`div`,{children:`Omit it to use the default model path.`}),`\n`,_jsxs(`div`,{children:[`Set `,_jsx(`code`,{children:`myvocal_v3_5`}),` to request Model V3.5 High Quality.`]}),`\n`,_jsxs(`div`,{children:[`Set `,_jsx(`code`,{children:`myvocal_v3`}),` to request the V3 path.`]}),`\n`,_jsxs(`div`,{children:[`Set `,_jsx(`code`,{children:`myvocal_v3_accent_enhance`}),` to request the Accent model path.`]}),`\n`,_jsxs(`div`,{children:[`When the Accent model is requested but its execution path is unavailable, the response is the standard generation error envelope (`,_jsx(`code`,{children:`code = 10003`}),`). The request is never silently served by a different model.`]})]})}),`\n`,_jsxs(ParamField,{body:`voiceSettings`,type:`object`,id:`param-voice-settings`,children:[_jsx(_components.p,{children:`For advanced settings, use suggested values unless you have strong tuning needs.`}),_jsx(Expandable,{title:`Toggle object`,children:_jsxs(ParamField,{body:`stability`,type:`number`,id:`param-stability`,children:[_jsxs(`div`,{children:[`Model V3.5 High Quality defaults to `,_jsx(`code`,{children:`0.5`}),`. Model V2 and Model V3 default to `,_jsx(`code`,{children:`0.7`}),` when this value is omitted.`]}),_jsxs(`div`,{children:[`A decimal in the range `,_jsx(`code`,{children:`0.1`}),` to `,_jsx(`code`,{children:`1`}),` inclusive. Values below `,_jsx(`code`,{children:`0.1`}),` or above `,_jsx(`code`,{children:`1`}),` are rejected; no fixed step is enforced.`]}),_jsx(`div`,{children:`When your parameters are set lower, the emotional variation of the TTS audio will be more abundant. Even for the same text, the effects generated multiple times will be different. You can choose the most suitable one by generating the same text’s TTS audio multiple times.`}),_jsx(`div`,{children:`When your parameters are set higher, the emotion of the TTS audio will tend to be consistent.`}),_jsxs(`div`,{children:[_jsx(`b`,{children:`Accent model note:`}),` a value inside the normal legal range (`,_jsx(`code`,{children:`0.1`}),` to `,_jsx(`code`,{children:`1`}),`) is accepted for compatibility but has no effect on `,_jsx(`code`,{children:`myvocal_v3_accent_enhance`}),`. An out-of-range value is still rejected with `,_jsx(`code`,{children:`code = 10006`}),`.`]})]})})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`For `,_jsx(`code`,{children:`myvocal_v3`}),`, explicit legal values are forwarded without rounding into named presets. This API contract does not define additional preset mappings. Continue sending the value in `,_jsx(`code`,{children:`voiceSettings.stability`}),`, in 0–1 units; a website display value such as 25 corresponds to `,_jsx(`code`,{children:`0.25`}),`, not 25. Website controls do not change this API’s inclusive `,_jsx(`code`,{children:`0.1`}),`–`,_jsx(`code`,{children:`1`}),` range: `,_jsx(`code`,{children:`0`}),` is rejected with `,_jsx(`code`,{children:`10006`}),` for every model.`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`For `,_jsx(`code`,{children:`myvocal_v3_accent_enhance`}),`, plain text is the supported minimal path. The inline `,_jsx(`code`,{children:`[tag]`}),` prompt control documented for `,_jsx(`code`,{children:`myvocal_v3`}),` is not documented as equivalent, and the service does not rewrite your text. Send plain text for the Accent model.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`prompt-control-myvocal_v3`,children:`Prompt Control (myvocal_v3)`}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Reference capability source: `,_jsx(`a`,{href:`https://v3.myvocal.ai/`,target:`_blank`,children:`v3.myvocal.ai`}),`. Use `,_jsx(`code`,{children:`[tag]`}),` in text to guide style and delivery.`]})}),`\n`,_jsx(_components.p,{children:`Basic syntax:`}),`\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:`[tag] Your text content`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Examples:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,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:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`[happy] Hello everyone, welcome to MyVocal.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`[laughter] That was funny.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Representative categories:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Emotion control: `,_jsx(_components.code,{children:`happy`}),`, `,_jsx(_components.code,{children:`excited`}),`, `,_jsx(_components.code,{children:`sad`}),`, `,_jsx(_components.code,{children:`angry`}),`, `,_jsx(_components.code,{children:`surprised`})]}),`\n`,_jsxs(_components.li,{children:[`Non-speech sounds: `,_jsx(_components.code,{children:`laughter`}),`, `,_jsx(_components.code,{children:`throat clearing`}),`, `,_jsx(_components.code,{children:`yawning`}),`, `,_jsx(_components.code,{children:`shushing`}),`, `,_jsx(_components.code,{children:`screaming`})]}),`\n`,_jsxs(_components.li,{children:[`Sound-related effects: `,_jsx(_components.code,{children:`breathing`}),`, `,_jsx(_components.code,{children:`sighing`}),`, `,_jsx(_components.code,{children:`gasping`}),`, `,_jsx(_components.code,{children:`crying`}),`, `,_jsx(_components.code,{children:`murmuring`})]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`Content-Type`,type:`string`,id:`param-content-type`,children:_jsxs(_components.p,{children:[`Success usually returns `,_jsx(`code`,{children:`audio/mpeg`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`Body`,type:`stream`,id:`param-body`,children:_jsx(_components.p,{children:`Binary audio stream payload.`})}),`\n`,_jsxs(Info,{children:[_jsxs(_components.p,{children:[`An HTTP `,_jsx(_components.code,{children:`200`}),` does not by itself mean the request succeeded. Read `,_jsx(_components.code,{children:`Content-Type`}),` before trusting the body:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`audio/*`}),` (normally `,_jsx(_components.code,{children:`audio/mpeg`}),`): the audio payload described above.`]}),`\n`,_jsxs(_components.li,{children:[`any JSON content type: the standard result envelope with a non-success `,_jsx(_components.code,{children:`code`}),` (see Common errors below).`]}),`\n`]}),_jsx(_components.p,{children:`The two paths fail differently. Before any audio is sent, a rejected or failed request is answered with the JSON envelope above. After audio has started, the connection is terminated instead of appending a JSON body, because appending JSON to a partial audio body would corrupt it. Treat a short or interrupted download as a failed request, not as a complete audio file.`})]}),`\n`,`\n`,`\n`,_jsx(Heading,{level:`3`,id:`common-errors`,children:`Common errors`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Invalid language option.`}),` (`,_jsx(_components.code,{children:`code = 10004`}),`): non-V3/default path is missing or using an unsupported `,_jsx(_components.code,{children:`language`}),` value; or the Accent model received a code outside its own language list.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`VOICE_NOT_FOUND`}),` (`,_jsx(_components.code,{children:`code = 10005`}),`): `,_jsx(_components.code,{children:`voiceId`}),` is invalid or not available under this API key.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Invalid stability option.`}),` (`,_jsx(_components.code,{children:`code = 10006`}),`): `,_jsx(_components.code,{children:`voiceSettings.stability`}),` is outside the legal range.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`code = 10003`}),`: the Accent model path was requested but its execution path is unavailable. The request is not silently served by another model.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`code = -1`}),`: upstream or backend failed to complete generation.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`model-v3-5-high-quality-example`,children:`Model V3.5 High Quality example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,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:`7`,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:` \"voiceId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cmyvocal_voice_id>\"`}),_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:`\"Hello from MyVocal.\"`}),_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:` \"modelId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"myvocal_v3_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:`\"en\"`}),_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:` \"voiceSettings\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"stability\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.5`}),_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`,_jsxs(_components.p,{children:[`Omit `,_jsx(_components.code,{children:`language`}),` for automatic detection. This model has its own language list. Unsupported codes return `,_jsx(_components.code,{children:`10004`}),`; legal stability remains inclusive `,_jsx(_components.code,{children:`0.1`}),`–`,_jsx(_components.code,{children:`1`}),`. Errors before audio use the existing JSON envelope. Errors after audio begins terminate the transfer without appending JSON; retrying is a new request, not an idempotent continuation.`]})]})}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":"Stream speech","api":"POST https://api.myvocal.ai/sound_clone/api/v1/tts/stream","description":"Synthesize text and return the audio as a streaming response.","href":"/api-reference/tts/ttsStream"}}},"mdxSourceWithNoJs":{"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`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Info,ParamField,RequestExample,ResponseExample,ResponseField,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(`sub`,{children:[_jsx(_components.strong,{children:`Text to Speech`}),` · Workflow: `,_jsx(_components.a,{href:`/quickstart`,children:`TTS quickstart`}),` · Models: `,_jsx(_components.a,{href:`/api-reference/tts/models`,children:`TTS Models \u0026 Migration`})]}),`\n`,_jsx(Heading,{level:`3`,id:`header`,children:`Header`}),`\n`,_jsx(ParamField,{header:`accessKey`,type:`string`,required:true,id:`param-access-key`,children:_jsxs(_components.p,{children:[`Your API key. See `,_jsx(_components.a,{href:`/api-reference/authentication`,children:`Authentication`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`body`,children:`Body`}),`\n`,_jsx(ParamField,{body:`voiceId`,type:`string`,required:true,id:`param-voice-id`,children:_jsxs(_components.p,{children:[`Voice ID returned by `,_jsx(`code`,{children:`GET /sound_clone/api/v1/voices`}),`.\n`,_jsxs(`div`,{children:[`For `,_jsx(`code`,{children:`myvocal_v3_accent_enhance`}),`, use a voice returned by `,_jsx(`code`,{children:`GET /sound_clone/api/v1/voices?modelId=myvocal_v3_accent_enhance`}),`.`]})]})}),`\n`,_jsx(ParamField,{body:`title`,type:`string`,id:`param-title`,children:_jsx(_components.p,{children:`Optional title for the generated record.`})}),`\n`,_jsx(ParamField,{body:`text`,type:`string`,required:true,id:`param-text`,children:_jsx(_components.p,{children:`Text to synthesize.`})}),`\n`,_jsx(ParamField,{body:`language`,type:`string`,id:`param-language`,children:_jsxs(_components.p,{children:[`Language selector.\n`,_jsxs(`div`,{children:[_jsx(`code`,{children:`myvocal_v3_5`}),`: optional model-specific ISO code; omit it for Auto. See the `,_jsx(_components.a,{href:`/api-reference/tts/v35-language-codes`,children:`Model V3.5 language table`}),`.`]}),`\n`,_jsx(`div`,{children:`Default/V2 path: required and must use existing mapped language values.`}),`\n`,_jsxs(`div`,{children:[_jsx(`code`,{children:`myvocal_v3`}),`: optional. If provided, it is forwarded to upstream as `,_jsx(`code`,{children:`language`}),`. If omitted, upstream auto-detect is used.`]}),`\n`,_jsxs(`div`,{children:[`See supported V3 codes in `,_jsx(_components.a,{href:`/api-reference/tts/v3-language-codes`,children:`V3 Language Codes`}),` (98 languages).`]}),`\n`,_jsxs(`div`,{children:[_jsx(`code`,{children:`myvocal_v3_accent_enhance`}),`: optional. Omit it (or send `,_jsx(`code`,{children:`auto`}),`) for automatic detection. The Accent model has its own code set (40 language codes plus `,_jsx(`code`,{children:`auto`}),`); see `,_jsx(_components.a,{href:`/api-reference/tts/models`,children:`TTS Models \u0026 Migration`}),`. A plain V3 code the Accent model does not support (for example `,_jsx(`code`,{children:`hmn`}),`) is rejected with `,_jsx(`code`,{children:`code = 10004`}),`. Legacy mapped enum values such as `,_jsx(`code`,{children:`US_ENGLISH`}),` are not Accent codes; use `,_jsx(`code`,{children:`en`}),`.`]})]})}),`\n`,_jsx(ParamField,{body:`modelId`,type:`string`,id:`param-model-id`,children:_jsxs(_components.p,{children:[`Optional explicit model selector.\n`,_jsx(`div`,{children:`Omit it to use the default model path.`}),`\n`,_jsxs(`div`,{children:[`Set `,_jsx(`code`,{children:`myvocal_v3_5`}),` to request Model V3.5 High Quality.`]}),`\n`,_jsxs(`div`,{children:[`Set `,_jsx(`code`,{children:`myvocal_v3`}),` to request the V3 path.`]}),`\n`,_jsxs(`div`,{children:[`Set `,_jsx(`code`,{children:`myvocal_v3_accent_enhance`}),` to request the Accent model path.`]}),`\n`,_jsxs(`div`,{children:[`When the Accent model is requested but its execution path is unavailable, the response is the standard generation error envelope (`,_jsx(`code`,{children:`code = 10003`}),`). The request is never silently served by a different model.`]})]})}),`\n`,_jsxs(ParamField,{body:`voiceSettings`,type:`object`,id:`param-voice-settings`,children:[_jsx(_components.p,{children:`For advanced settings, use suggested values unless you have strong tuning needs.`}),_jsx(Expandable,{title:`Toggle object`,children:_jsxs(ParamField,{body:`stability`,type:`number`,id:`param-stability`,children:[_jsxs(`div`,{children:[`Model V3.5 High Quality defaults to `,_jsx(`code`,{children:`0.5`}),`. Model V2 and Model V3 default to `,_jsx(`code`,{children:`0.7`}),` when this value is omitted.`]}),_jsxs(`div`,{children:[`A decimal in the range `,_jsx(`code`,{children:`0.1`}),` to `,_jsx(`code`,{children:`1`}),` inclusive. Values below `,_jsx(`code`,{children:`0.1`}),` or above `,_jsx(`code`,{children:`1`}),` are rejected; no fixed step is enforced.`]}),_jsx(`div`,{children:`When your parameters are set lower, the emotional variation of the TTS audio will be more abundant. Even for the same text, the effects generated multiple times will be different. You can choose the most suitable one by generating the same text’s TTS audio multiple times.`}),_jsx(`div`,{children:`When your parameters are set higher, the emotion of the TTS audio will tend to be consistent.`}),_jsxs(`div`,{children:[_jsx(`b`,{children:`Accent model note:`}),` a value inside the normal legal range (`,_jsx(`code`,{children:`0.1`}),` to `,_jsx(`code`,{children:`1`}),`) is accepted for compatibility but has no effect on `,_jsx(`code`,{children:`myvocal_v3_accent_enhance`}),`. An out-of-range value is still rejected with `,_jsx(`code`,{children:`code = 10006`}),`.`]})]})})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`For `,_jsx(`code`,{children:`myvocal_v3`}),`, explicit legal values are forwarded without rounding into named presets. This API contract does not define additional preset mappings. Continue sending the value in `,_jsx(`code`,{children:`voiceSettings.stability`}),`, in 0–1 units; a website display value such as 25 corresponds to `,_jsx(`code`,{children:`0.25`}),`, not 25. Website controls do not change this API’s inclusive `,_jsx(`code`,{children:`0.1`}),`–`,_jsx(`code`,{children:`1`}),` range: `,_jsx(`code`,{children:`0`}),` is rejected with `,_jsx(`code`,{children:`10006`}),` for every model.`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`For `,_jsx(`code`,{children:`myvocal_v3_accent_enhance`}),`, plain text is the supported minimal path. The inline `,_jsx(`code`,{children:`[tag]`}),` prompt control documented for `,_jsx(`code`,{children:`myvocal_v3`}),` is not documented as equivalent, and the service does not rewrite your text. Send plain text for the Accent model.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`prompt-control-myvocal_v3`,children:`Prompt Control (myvocal_v3)`}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Reference capability source: `,_jsx(`a`,{href:`https://v3.myvocal.ai/`,target:`_blank`,children:`v3.myvocal.ai`}),`. Use `,_jsx(`code`,{children:`[tag]`}),` in text to guide style and delivery.`]})}),`\n`,_jsx(_components.p,{children:`Basic syntax:`}),`\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:`[tag] Your text content`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Examples:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,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:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`[happy] Hello everyone, welcome to MyVocal.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`[laughter] That was funny.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Representative categories:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Emotion control: `,_jsx(_components.code,{children:`happy`}),`, `,_jsx(_components.code,{children:`excited`}),`, `,_jsx(_components.code,{children:`sad`}),`, `,_jsx(_components.code,{children:`angry`}),`, `,_jsx(_components.code,{children:`surprised`})]}),`\n`,_jsxs(_components.li,{children:[`Non-speech sounds: `,_jsx(_components.code,{children:`laughter`}),`, `,_jsx(_components.code,{children:`throat clearing`}),`, `,_jsx(_components.code,{children:`yawning`}),`, `,_jsx(_components.code,{children:`shushing`}),`, `,_jsx(_components.code,{children:`screaming`})]}),`\n`,_jsxs(_components.li,{children:[`Sound-related effects: `,_jsx(_components.code,{children:`breathing`}),`, `,_jsx(_components.code,{children:`sighing`}),`, `,_jsx(_components.code,{children:`gasping`}),`, `,_jsx(_components.code,{children:`crying`}),`, `,_jsx(_components.code,{children:`murmuring`})]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`Content-Type`,type:`string`,id:`param-content-type`,children:_jsxs(_components.p,{children:[`Success usually returns `,_jsx(`code`,{children:`audio/mpeg`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`Body`,type:`stream`,id:`param-body`,children:_jsx(_components.p,{children:`Binary audio stream payload.`})}),`\n`,_jsxs(Info,{children:[_jsxs(_components.p,{children:[`An HTTP `,_jsx(_components.code,{children:`200`}),` does not by itself mean the request succeeded. Read `,_jsx(_components.code,{children:`Content-Type`}),` before trusting the body:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`audio/*`}),` (normally `,_jsx(_components.code,{children:`audio/mpeg`}),`): the audio payload described above.`]}),`\n`,_jsxs(_components.li,{children:[`any JSON content type: the standard result envelope with a non-success `,_jsx(_components.code,{children:`code`}),` (see Common errors below).`]}),`\n`]}),_jsx(_components.p,{children:`The two paths fail differently. Before any audio is sent, a rejected or failed request is answered with the JSON envelope above. After audio has started, the connection is terminated instead of appending a JSON body, because appending JSON to a partial audio body would corrupt it. Treat a short or interrupted download as a failed request, not as a complete audio file.`})]}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`Default model path`,numberOfLines:`13`,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:`13`,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:` --location`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.myvocal.ai/sound_clone/api/v1/tts/stream'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'accessKey: \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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--data `}),_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:` \"voiceId\": \"\u003cvoice_id>\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"title\": \"tts-stream-default\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"text\": \"Hello from MyVocal streaming endpoint.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"language\": \"en\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"voiceSettings\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"stability\": 0.7`})}),`\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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--output `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`output-default.mp3`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Explicit myvocal_v3 with language`,numberOfLines:`14`,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:`14`,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:` --location`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.myvocal.ai/sound_clone/api/v1/tts/stream'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'accessKey: \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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--data `}),_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:` \"voiceId\": \"\u003cvoice_id>\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"title\": \"tts-stream-v3-explicit-language\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"text\": \"[happy] Hola, this is a short V3 streaming test.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"language\": \"en\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"modelId\": \"myvocal_v3\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"voiceSettings\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"stability\": 0.5`})}),`\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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--output `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`output-v3-explicit.mp3`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Explicit myvocal_v3 with auto-detect (omit language)`,numberOfLines:`13`,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:`13`,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:` --location`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.myvocal.ai/sound_clone/api/v1/tts/stream'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'accessKey: \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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--data `}),_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:` \"voiceId\": \"\u003cvoice_id>\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"title\": \"tts-stream-v3-auto-detect\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"text\": \"[happy] Hola, este es un test para auto detect.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"modelId\": \"myvocal_v3\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"voiceSettings\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"stability\": 0.5`})}),`\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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--output `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`output-v3-auto.mp3`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Explicit myvocal_v3_accent_enhance`,numberOfLines:`9`,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:`9`,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:` --location`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.myvocal.ai/sound_clone/api/v1/tts/stream'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'accessKey: \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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--data `}),_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:` \"voiceId\": \"\u003caccent_voice_id>\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"text\": \"Hello from the Accent model.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"modelId\": \"myvocal_v3_accent_enhance\"`})}),`\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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--output `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`output-accent.mp3`})]}),`\n`]})})})]}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`200 Success`,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:`audio/mpeg stream (binary)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(CodeBlock,{filename:`200 Fail`,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10004`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Invalid language option.\"`}),_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:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`3`,id:`common-errors`,children:`Common errors`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Invalid language option.`}),` (`,_jsx(_components.code,{children:`code = 10004`}),`): non-V3/default path is missing or using an unsupported `,_jsx(_components.code,{children:`language`}),` value; or the Accent model received a code outside its own language list.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`VOICE_NOT_FOUND`}),` (`,_jsx(_components.code,{children:`code = 10005`}),`): `,_jsx(_components.code,{children:`voiceId`}),` is invalid or not available under this API key.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Invalid stability option.`}),` (`,_jsx(_components.code,{children:`code = 10006`}),`): `,_jsx(_components.code,{children:`voiceSettings.stability`}),` is outside the legal range.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`code = 10003`}),`: the Accent model path was requested but its execution path is unavailable. The request is not silently served by another model.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`code = -1`}),`: upstream or backend failed to complete generation.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`model-v3-5-high-quality-example`,children:`Model V3.5 High Quality example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,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:`7`,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:` \"voiceId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cmyvocal_voice_id>\"`}),_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:`\"Hello from MyVocal.\"`}),_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:` \"modelId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"myvocal_v3_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:`\"en\"`}),_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:` \"voiceSettings\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"stability\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.5`}),_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`,_jsxs(_components.p,{children:[`Omit `,_jsx(_components.code,{children:`language`}),` for automatic detection. This model has its own language list. Unsupported codes return `,_jsx(_components.code,{children:`10004`}),`; legal stability remains inclusive `,_jsx(_components.code,{children:`0.1`}),`–`,_jsx(_components.code,{children:`1`}),`. Errors before audio use the existing JSON envelope. Errors after audio begins terminate the transfer without appending JSON; retrying is a new request, not an idempotent continuation.`]})]})}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":"Stream speech","api":"POST https://api.myvocal.ai/sound_clone/api/v1/tts/stream","description":"Synthesize text and return the audio as a streaming response.","href":"/api-reference/tts/ttsStream"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Header","slug":"header","depth":3,"children":[]},{"title":"Body","slug":"body","depth":3,"children":[]},{"title":"Prompt Control (myvocal_v3)","slug":"prompt-control-myvocal_v3","depth":3,"children":[]},{"title":"Response","slug":"response","depth":3,"children":[]},{"title":"Common errors","slug":"common-errors","depth":3,"children":[]},{"title":"Model V3.5 High Quality example","slug":"model-v3-5-high-quality-example","depth":3,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"Default model path","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"13\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --location\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'https://api.myvocal.ai/sound_clone/api/v1/tts/stream'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--header \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'accessKey: \u0026#x3C;your_api_key>'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--header \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--data \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"voiceId\": \"\u0026#x3C;voice_id>\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"title\": \"tts-stream-default\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"text\": \"Hello from MyVocal streaming endpoint.\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"language\": \"en\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"voiceSettings\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"stability\": 0.7\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">}'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--output \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">output-default.mp3\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Explicit myvocal_v3 with language","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"14\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --location\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'https://api.myvocal.ai/sound_clone/api/v1/tts/stream'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--header \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'accessKey: \u0026#x3C;your_api_key>'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--header \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--data \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"voiceId\": \"\u0026#x3C;voice_id>\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"title\": \"tts-stream-v3-explicit-language\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"text\": \"[happy] Hola, this is a short V3 streaming test.\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"language\": \"en\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"modelId\": \"myvocal_v3\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"voiceSettings\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"stability\": 0.5\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">}'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--output \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">output-v3-explicit.mp3\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Explicit myvocal_v3 with auto-detect (omit language)","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"13\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --location\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'https://api.myvocal.ai/sound_clone/api/v1/tts/stream'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--header \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'accessKey: \u0026#x3C;your_api_key>'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--header \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--data \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"voiceId\": \"\u0026#x3C;voice_id>\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"title\": \"tts-stream-v3-auto-detect\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"text\": \"[happy] Hola, este es un test para auto detect.\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"modelId\": \"myvocal_v3\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"voiceSettings\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"stability\": 0.5\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">}'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--output \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">output-v3-auto.mp3\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Explicit myvocal_v3_accent_enhance","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"9\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --location\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'https://api.myvocal.ai/sound_clone/api/v1/tts/stream'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--header \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'accessKey: \u0026#x3C;your_api_key>'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--header \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--data \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"voiceId\": \"\u0026#x3C;accent_voice_id>\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"text\": \"Hello from the Accent model.\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"modelId\": \"myvocal_v3_accent_enhance\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">}'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--output \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">output-accent.mp3\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200 Success","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"text\">\u003ccode language=\"text\" numberOfLines=\"2\">\u003cspan class=\"line\">\u003cspan>audio/mpeg stream (binary)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan>\u003c/span>\u003c/span>\u003c/code>\u003c/pre>"},{"filename":"200 Fail","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"5\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">10004\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Invalid language option.\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Stream speech","path":"/sound_clone/api/v1/tts/stream","servers":[{"url":"https://api.myvocal.ai"}],"method":"post","request":{"security":[],"parameters":{"query":{},"header":{"accessKey":{"schema":[{"type":"string","description":"Your API key. See Authentication .","required":true}]}},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"voiceId":[{"type":"string","description":"Voice ID returned by .","required":true}],"title":[{"type":"string","description":"Optional title for the generated record."}],"text":[{"type":"string","description":"Text to synthesize.","required":true}],"language":[{"type":"string","description":"Language selector."}],"modelId":[{"type":"string","description":"Optional explicit model selector."}],"voiceSettings":[{"type":"object","properties":{"stability":[{"type":"number"}]},"description":"For advanced settings, use suggested values unless you have strong tuning needs."}]}}],"examples":{"example":{"value":{"voiceId":"\u003cstring>","title":"\u003cstring>","text":"\u003cstring>","language":"\u003cstring>","modelId":"\u003cstring>","voiceSettings":{"stability":123}}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"Content-Type":[{"type":"string","description":"Success usually returns ."}],"Body":[{"type":"object","properties":{},"description":"Binary audio stream payload."}]}}],"examples":{"example":{"value":{"Content-Type":"\u003cstring>","Body":{}}}}}}},"deprecated":false}},"jsLinks":["/_mintlify/custom/wiz-myvocal/72f7122fda9600c0/examples/stt/browser/app.js","/_mintlify/custom/wiz-myvocal/596f5e16eb824fa7/examples/stt/browser/capture-worklet.js"],"subdomain":"wiz-myvocal","siteName":"MyVocal.AI","title":"Stream speech - MyVocal.AI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-01T03:28:08.643Z","originalFileLocation":"api-reference/tts/ttsStream.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=\"Synthesize text and return the audio as a streaming response.\">\u003cmeta data-mint-head name=\"application-name\" content=\"MyVocal.AI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/wiz-myvocal/PMBy2yredCIOMzBC/_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/wiz-myvocal/PMBy2yredCIOMzBC/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/wiz-myvocal/PMBy2yredCIOMzBC/_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/wiz-myvocal/PMBy2yredCIOMzBC/_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/wiz-myvocal/PMBy2yredCIOMzBC/_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/wiz-myvocal/PMBy2yredCIOMzBC/_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/wiz-myvocal/PMBy2yredCIOMzBC/_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/wiz-myvocal/PMBy2yredCIOMzBC/_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/wiz-myvocal/PMBy2yredCIOMzBC/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Stream speech - MyVocal.AI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Synthesize text and return the audio as a streaming response.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"MyVocal.AI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.myvocal.ai/api-reference/tts/ttsStream\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://wiz-myvocal.mintlify.site/_mintlify/api/og/v2?division=TTS+API+reference\u0026amp;title=Stream+speech\u0026amp;description=Synthesize+text+and+return+the+audio+as+a+streaming+response.\u0026amp;theme=14743afe2e185121e212b429\u0026amp;signature=cf149d6c6210d4d7b874289b3e76eae2e259f2b9e69e160d287c8649faffd212\">\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=\"Stream speech - MyVocal.AI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Synthesize text and return the audio as a streaming response.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://wiz-myvocal.mintlify.site/_mintlify/api/og/v2?division=TTS+API+reference\u0026amp;title=Stream+speech\u0026amp;description=Synthesize+text+and+return+the+audio+as+a+streaming+response.\u0026amp;theme=14743afe2e185121e212b429\u0026amp;signature=cf149d6c6210d4d7b874289b3e76eae2e259f2b9e69e160d287c8649faffd212\">\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/wiz-myvocal/PMBy2yredCIOMzBC/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"MyVocal.AI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#9563FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.myvocal.ai/api-reference/tts/ttsStream\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/tts/ttsStream.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.myvocal.ai/#organization\",\"name\":\"MyVocal.AI\",\"url\":\"https://docs.myvocal.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/wiz-myvocal/kDrQNVoFkA5WOhL_/logo/light.svg?fit=max\u0026auto=format\u0026n=kDrQNVoFkA5WOhL_\u0026q=85\u0026s=1d17c658234c347ae43c180de792bea5\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.myvocal.ai#website\",\"name\":\"MyVocal.AI\",\"url\":\"https://docs.myvocal.ai\",\"publisher\":{\"@id\":\"https://docs.myvocal.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.myvocal.ai/api-reference/tts/ttsStream#webpage\",\"url\":\"https://docs.myvocal.ai/api-reference/tts/ttsStream\",\"name\":\"Stream speech\",\"description\":\"Synthesize text and return the audio as a streaming response.\",\"dateModified\":\"2026-11-01T03:28:08.643Z\",\"isPartOf\":{\"@id\":\"https://docs.myvocal.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.myvocal.ai/api-reference/tts/ttsStream#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.myvocal.ai/api-reference/tts/ttsStream#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Text to Speech\",\"item\":\"https://docs.myvocal.ai/quickstart\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"TTS API reference\",\"item\":\"https://docs.myvocal.ai/api-reference/tts/tts\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Stream speech\",\"item\":\"https://docs.myvocal.ai/api-reference/tts/ttsStream\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.myvocal.ai/api-reference/tts/ttsStream#apireference\",\"headline\":\"Stream speech\",\"name\":\"Stream speech\",\"description\":\"Synthesize text and return the audio as a streaming response.\",\"url\":\"https://docs.myvocal.ai/api-reference/tts/ttsStream\",\"mainEntityOfPage\":{\"@id\":\"https://docs.myvocal.ai/api-reference/tts/ttsStream#webpage\"},\"dateModified\":\"2026-11-01T03:28:08.643Z\",\"publisher\":{\"@id\":\"https://docs.myvocal.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.myvocal.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"MyVocal.AI\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"MyVocal.AI","nav":{"global":null,"groups":[{"group":"Getting started","pages":[{"title":"MyVocal API","sidebarTitle":"Product overview","href":"/introduction"},{"title":"Make your first API request","sidebarTitle":"First API request","href":"/guides/get-started"},{"title":"Authentication","href":"/api-reference/authentication"},{"title":"Get account information","sidebarTitle":"Account information","api":"GET https://api.myvocal.ai/sound_clone/api/v1/user/info","href":"/api-reference/user/getInfo"},{"title":"API directory","sidebarTitle":"API directory","href":"/api-reference/overview"}]},{"group":"Text to Speech","pages":[{"title":"Text to Speech quickstart","sidebarTitle":"TTS quickstart","href":"/quickstart"},{"group":"Models \u0026 languages","pages":[{"title":"TTS Models \u0026 Migration","sidebarTitle":"Models \u0026 migration","href":"/api-reference/tts/models"},{"title":"V3 Language Codes","sidebarTitle":"V3 language codes","href":"/api-reference/tts/v3-language-codes"},{"title":"Model V3.5 High Quality language codes","sidebarTitle":"V3.5 language codes","href":"/api-reference/tts/v35-language-codes"}]},{"group":"TTS API reference","pages":[{"title":"Create speech","api":"POST https://api.myvocal.ai/sound_clone/api/v1/tts","description":"Synthesize text and return the complete audio in the response body.","href":"/api-reference/tts/tts"},{"title":"Stream speech","api":"POST https://api.myvocal.ai/sound_clone/api/v1/tts/stream","href":"/api-reference/tts/ttsStream"}]},{"group":"TTS History","pages":[{"title":"List TTS history","api":"GET https://api.myvocal.ai/sound_clone/api/v1/tts/list","description":"List your Text to Speech history records, with a cursor for older records.","href":"/api-reference/history/ttsList"},{"title":"Get TTS audio URLs","api":"POST https://api.myvocal.ai/sound_clone/api/v1/tts/query","href":"/api-reference/history/ttsListUrl"},{"title":"Delete TTS history","api":"DELETE https://api.myvocal.ai/sound_clone/api/v1/tts","href":"/api-reference/history/deleteTTS"}]}]},{"group":"Speech to Text","pages":[{"title":"Speech to Text — Batch quickstart","sidebarTitle":"Batch quickstart","href":"/guides/stt-batch-quickstart"},{"title":"Speech to Text — Real-time quickstart","sidebarTitle":"Real-time quickstart","href":"/guides/stt-realtime-quickstart"},{"group":"Real-time SDKs","pages":[{"title":"Real-time SDKs — install","sidebarTitle":"Install","href":"/sdks/stt-realtime/overview"},{"title":"Real-time SDK — Python","sidebarTitle":"Python","href":"/sdks/stt-realtime/python"},{"title":"Real-time SDK — Java","sidebarTitle":"Java","href":"/sdks/stt-realtime/java"},{"title":"Real-time SDK — Go","sidebarTitle":"Go","href":"/sdks/stt-realtime/go"},{"title":"Real-time SDKs — behaviour guide","sidebarTitle":"Behavior guide","href":"/sdks/stt-realtime/behavior"}]},{"group":"STT API reference","pages":[{"title":"Speech to Text capabilities","api":"GET https://api.myvocal.ai/sound_clone/api/v1/stt/capabilities","href":"/api-reference/stt/capabilities"},{"group":"Batch uploads","pages":[{"title":"Create an upload","api":"POST https://api.myvocal.ai/sound_clone/api/v1/stt/uploads","href":"/api-reference/stt/createUpload"},{"title":"Sign an upload part","api":"POST https://api.myvocal.ai/sound_clone/api/v1/stt/uploads/{uploadId}/parts/{partNumber}","href":"/api-reference/stt/signUploadPart"},{"title":"Complete an upload","api":"POST https://api.myvocal.ai/sound_clone/api/v1/stt/uploads/{uploadId}/complete","href":"/api-reference/stt/completeUpload"},{"title":"Get an upload","api":"GET https://api.myvocal.ai/sound_clone/api/v1/stt/uploads/{uploadId}","href":"/api-reference/stt/getUpload"}]},{"group":"Batch transcriptions","pages":[{"title":"Create a transcription","api":"POST https://api.myvocal.ai/sound_clone/api/v1/stt/transcriptions","href":"/api-reference/stt/createTranscription"},{"title":"Get a transcription","api":"GET https://api.myvocal.ai/sound_clone/api/v1/stt/transcriptions/{transcriptionId}","href":"/api-reference/stt/getTranscription"},{"title":"List transcriptions","api":"GET https://api.myvocal.ai/sound_clone/api/v1/stt/transcriptions","href":"/api-reference/stt/listTranscriptions"},{"title":"Download a transcription","api":"GET https://api.myvocal.ai/sound_clone/api/v1/stt/transcriptions/{transcriptionId}/download","href":"/api-reference/stt/downloadTranscription"},{"title":"Delete a transcription","api":"DELETE https://api.myvocal.ai/sound_clone/api/v1/stt/transcriptions/{transcriptionId}","href":"/api-reference/stt/deleteTranscription"}]},{"group":"Real-time sessions","pages":[{"title":"Create a real-time session","api":"POST https://api.myvocal.ai/sound_clone/api/v1/stt/realtime/sessions","href":"/api-reference/stt/createSession"},{"title":"Get a real-time session","api":"GET https://api.myvocal.ai/sound_clone/api/v1/stt/realtime/sessions/{sessionId}","href":"/api-reference/stt/getSession"},{"title":"Pause a real-time session","api":"POST https://api.myvocal.ai/sound_clone/api/v1/stt/realtime/sessions/{sessionId}/pause","href":"/api-reference/stt/pauseSession"},{"title":"Resume a real-time session","api":"POST https://api.myvocal.ai/sound_clone/api/v1/stt/realtime/sessions/{sessionId}/resume","href":"/api-reference/stt/resumeSession"},{"title":"Finish a real-time session","api":"POST https://api.myvocal.ai/sound_clone/api/v1/stt/realtime/sessions/{sessionId}/finish","href":"/api-reference/stt/finishSession"},{"title":"Create a browser ticket","api":"POST https://api.myvocal.ai/sound_clone/api/v1/stt/realtime/sessions/{sessionId}/tickets","href":"/api-reference/stt/createTicket"}]}]},{"title":"Speech to Text availability","sidebarTitle":"Availability","href":"/guides/stt-availability"}]},{"group":"Voice cloning","pages":[{"title":"How to use voices","sidebarTitle":"How to use voices","href":"/guides/voice-quickstart"},{"group":"Voice API reference","pages":[{"title":"Create a TTS voice","api":"POST https://docs.myvocal.ai/sound_clone/api/v1/voices/tts","href":"/api-reference/voice/addTTSVoice"},{"title":"Create a Cover voice","api":"POST https://docs.myvocal.ai/sound_clone/api/v1/voices/vc","href":"/api-reference/voice/addCoverVoice"},{"title":"Improve a TTS voice","api":"PUT https://docs.myvocal.ai/sound_clone/api/v1/voices/tts/{voiceId}","href":"/api-reference/voice/editTTSVoice"},{"title":"Improve a Cover voice","api":"PUT https://docs.myvocal.ai/sound_clone/api/v1/voices/vc/{voiceId}","href":"/api-reference/voice/editCoverVoice"},{"title":"List voices","api":"GET https://api.myvocal.ai/sound_clone/api/v1/voices","href":"/api-reference/voice/list"},{"title":"Rename a voice","api":"PUT https://api.myvocal.ai/sound_clone/api/v1/voices/rename/{id}","href":"/api-reference/voice/updateVoiceName"},{"title":"Delete a voice","api":"DELETE https://api.myvocal.ai/sound_clone/api/v1/voices/{id}","href":"/api-reference/voice/delete"}]}]},{"group":"AI Cover","pages":[{"title":"AI Cover quickstart","sidebarTitle":"Quickstart","href":"/guides/cover-quickstart"},{"title":"Generate a cover","api":"POST https://api.myvocal.ai/sound_clone/api/v1/cover","href":"/api-reference/cover/cover"},{"title":"Cover callbacks","href":"/callback"},{"group":"Cover History","pages":[{"title":"List Cover history","api":"GET https://api.myvocal.ai/sound_clone/sound_clone/api/v1/cover/list","href":"/api-reference/history/coverList"},{"title":"Get Cover audio URLs","api":"POST https://api.myvocal.ai/sound_clone/api/v1/cover/query","href":"/api-reference/history/coverListUrl"},{"title":"Delete Cover history","api":"DELETE https://api.myvocal.ai/sound_clone/api/v1/cover","href":"/api-reference/history/deleteCover"}]}]},{"group":"Text to Music","pages":[{"title":"Text-to-Music quickstart","sidebarTitle":"Quickstart","href":"/guides/music-quickstart"},{"group":"Music API reference","pages":[{"title":"Music capabilities","api":"GET https://api.myvocal.ai/sound_clone/api/v1/music/capabilities","href":"/api-reference/music/capabilities"},{"group":"Create and generate","pages":[{"title":"Create a music project","api":"POST https://api.myvocal.ai/sound_clone/api/v1/music/projects","href":"/api-reference/music/createProject"},{"title":"Get a music job","api":"GET https://api.myvocal.ai/sound_clone/api/v1/music/jobs/{jobId}","href":"/api-reference/music/getJob"},{"title":"Get a music project","api":"GET https://api.myvocal.ai/sound_clone/api/v1/music/projects/{projectId}","href":"/api-reference/music/getProject"},{"title":"Update the creative brief","api":"PUT https://api.myvocal.ai/sound_clone/api/v1/music/projects/{projectId}/brief","href":"/api-reference/music/updateBrief"},{"title":"Edit the arrangement","api":"PUT https://api.myvocal.ai/sound_clone/api/v1/music/projects/{projectId}/arrangement","href":"/api-reference/music/updateArrangement"},{"title":"Regenerate the arrangement","api":"POST https://api.myvocal.ai/sound_clone/api/v1/music/projects/{projectId}/arrangement/regenerate","href":"/api-reference/music/regenerateArrangement"},{"title":"Quote a music generation","api":"POST https://api.myvocal.ai/sound_clone/api/v1/music/projects/{projectId}/quotes","href":"/api-reference/music/createQuote"},{"title":"Generate the song","api":"POST https://api.myvocal.ai/sound_clone/api/v1/music/projects/{projectId}/generations","href":"/api-reference/music/createGeneration"},{"title":"Get a playback URL","api":"GET https://api.myvocal.ai/sound_clone/api/v1/music/projects/{projectId}/playback-url","href":"/api-reference/music/playbackUrl"},{"title":"Download the song","api":"GET https://api.myvocal.ai/sound_clone/api/v1/music/projects/{projectId}/download","href":"/api-reference/music/download"}]},{"group":"Manage projects","pages":[{"title":"List music projects","api":"GET https://api.myvocal.ai/sound_clone/api/v1/music/projects","href":"/api-reference/music/listProjects"},{"title":"Create a project version","api":"POST https://api.myvocal.ai/sound_clone/api/v1/music/projects/{projectId}/versions","href":"/api-reference/music/createVersion"},{"title":"Rename a music project","api":"PATCH https://api.myvocal.ai/sound_clone/api/v1/music/projects/{projectId}/name","href":"/api-reference/music/renameProject"},{"title":"Delete a music project","api":"DELETE https://api.myvocal.ai/sound_clone/api/v1/music/projects/{projectId}","href":"/api-reference/music/deleteProject"}]}]}]},{"group":"Interpretation","pages":[{"title":"Interpretation quickstart","sidebarTitle":"Quickstart","href":"/guides/interpretation-quickstart"},{"title":"Realtime translation quickstart","href":"/guides/interpretation-realtime-quickstart"},{"title":"Realtime translation API reference","href":"/api-reference/interpretation/realtime"},{"group":"Interpretation API reference","pages":[{"title":"Interpretation capabilities","api":"GET https://api.myvocal.ai/sound_clone/api/v1/interpretation/capabilities","href":"/api-reference/interpretation/capabilities"},{"group":"Upload the source","pages":[{"title":"Create an upload session","api":"POST https://api.myvocal.ai/sound_clone/api/v1/interpretation/projects/{projectId}/uploads","href":"/api-reference/interpretation/createUpload"},{"title":"Sign an upload part","api":"POST https://api.myvocal.ai/sound_clone/api/v1/interpretation/uploads/{uploadId}/parts","href":"/api-reference/interpretation/signUploadPart"},{"title":"Complete an upload","api":"POST https://api.myvocal.ai/sound_clone/api/v1/interpretation/uploads/{uploadId}/complete","href":"/api-reference/interpretation/completeUpload"},{"title":"Get upload status","api":"GET https://api.myvocal.ai/sound_clone/api/v1/interpretation/uploads/{uploadId}","href":"/api-reference/interpretation/getUpload"},{"title":"Remove the interpretation source","api":"DELETE https://api.myvocal.ai/sound_clone/api/v1/interpretation/projects/{projectId}/source","href":"/api-reference/interpretation/deleteSource"}]},{"group":"Quote and generate","pages":[{"title":"Patch the interpretation draft","api":"PATCH https://api.myvocal.ai/sound_clone/api/v1/interpretation/projects/{projectId}/draft","href":"/api-reference/interpretation/patchDraft"},{"title":"Quote interpretation targets","api":"POST https://api.myvocal.ai/sound_clone/api/v1/interpretation/projects/{projectId}/quotes","href":"/api-reference/interpretation/createQuote"},{"title":"Accept an interpretation quote","api":"POST https://api.myvocal.ai/sound_clone/api/v1/interpretation/projects/{projectId}/generations","href":"/api-reference/interpretation/createGeneration"},{"title":"Get an interpretation job","api":"GET https://api.myvocal.ai/sound_clone/api/v1/interpretation/jobs/{jobId}","href":"/api-reference/interpretation/getJob"},{"title":"Get a retry plan","api":"GET https://api.myvocal.ai/sound_clone/api/v1/interpretation/projects/{projectId}/targets/{targetId}/retry-plan","href":"/api-reference/interpretation/retryPlan"},{"title":"Retry a failed target","api":"POST https://api.myvocal.ai/sound_clone/api/v1/interpretation/projects/{projectId}/targets/{targetId}/retry","href":"/api-reference/interpretation/retryTarget"}]},{"group":"Results and export","pages":[{"title":"Play an interpretation asset","api":"GET https://api.myvocal.ai/sound_clone/api/v1/interpretation/assets/{assetId}/playback","href":"/api-reference/interpretation/playback"},{"title":"Create an export","api":"POST https://api.myvocal.ai/sound_clone/api/v1/interpretation/targets/{targetId}/exports","href":"/api-reference/interpretation/createExport"},{"title":"Download an export","api":"GET https://api.myvocal.ai/sound_clone/api/v1/interpretation/exports/{exportId}/download","href":"/api-reference/interpretation/downloadExport"}]},{"group":"Manage projects","pages":[{"title":"Create an interpretation project","api":"POST https://api.myvocal.ai/sound_clone/api/v1/interpretation/projects","href":"/api-reference/interpretation/createProject"},{"title":"Get an interpretation project","api":"GET https://api.myvocal.ai/sound_clone/api/v1/interpretation/projects/{projectId}","href":"/api-reference/interpretation/getProject"},{"title":"List interpretation projects","api":"GET https://api.myvocal.ai/sound_clone/api/v1/interpretation/projects","href":"/api-reference/interpretation/listProjects"},{"title":"Rename an interpretation project","api":"PATCH https://api.myvocal.ai/sound_clone/api/v1/interpretation/projects/{projectId}/name","href":"/api-reference/interpretation/renameProject"},{"title":"Delete an interpretation project","api":"DELETE https://api.myvocal.ai/sound_clone/api/v1/interpretation/projects/{projectId}","href":"/api-reference/interpretation/deleteProject"}]}]}]},{"group":"Integration concepts","pages":[{"title":"Characters, quotes and billing","sidebarTitle":"Characters \u0026 billing","href":"/guides/characters-and-quotes"},{"title":"Async jobs, polling and retries","sidebarTitle":"Async jobs, polling \u0026 retries","href":"/guides/async-jobs-and-retries"}]}]},"basePath":"","title":"Stream speech - MyVocal.AI","buildId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","deploymentId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-CBsVopKK.js","utils-DZAk68jJ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D32AYZrP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D_A5_cny.js","snippetPresets-xNRfS9th.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BIB25-tq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CydJ4w4j.js","shallow-CYPBeQSG.js","getApiPlaygroundDisplay-A5xJVBOu.js","CodeSnippet-BVRTgi3m.js","CodeSnippets-DjD6BSlt.js","Page-Dr40SSJq.js","getPastedJson-D4V4JyrR.js","icon-uhcnG22T.js","MethodPill-CM-ZQdGH.js","DuplicateIcon-B_WnOiNf.js","createIcon-CJsb8utt.js","DynamicMarkdown-D-2HDKEp.js","SectionHeading-KP5xmMgQ.js","axios-vUo_bRtp.js"]}