Generate speech audio from text using a public voice or a custom voice you can access.
The result includes a task ID, audio URL, and a subtitle URL when available.
model_id is optional and applies only to ElevenLabs voices.
Value
Behavior
Omitted
Uses eleven_flash_v2_5 for an ElevenLabs voice
eleven_flash_v2_5
Selects Flash v2.5
eleven_v4_turbo
Selects v4 Turbo
Empty strings, whitespace, null, non-string values, and all other model IDs are
rejected. For a voice from another provider, omit model_id to keep that
provider’s existing behavior; explicitly choosing an ElevenLabs model is rejected.Find a voice_id in Get Voices or
Get Custom Voices.
ElevenLabs documents different text controls for these models:
Model
SSML <break>
Audio tags
eleven_flash_v2_5
Supported: <break time="1.5s" />. Use seconds, with a maximum of 3 seconds per break.
Does not support the square-bracket audio-tag controls used by v3/v4.
eleven_v4_turbo
Not supported.
Supports instructions such as [whispers], [laughs], [short pause], [pause], and [long pause] inside the text.
Place the control directly in text; no additional tag parameter is needed.
Pause tags do not specify a fixed number of seconds, so they are not an exact
replacement for a timed SSML break. Delivery can vary with the voice and context.
ElevenLabs also warns that excessive SSML breaks can cause faster speech or audio
artifacts.Jogg adapts pause syntax when sending the synthesis request:
Selected model
Input control
Sent to ElevenLabs
eleven_v4_turbo
Timed break greater than 0 and up to 0.5 seconds
[short pause]
eleven_v4_turbo
Timed break over 0.5 and up to 1 second
[pause]
eleven_v4_turbo
Timed break over 1 second, including breaks over 2 seconds
[long pause]
eleven_v4_turbo
Zero-second break
Removed
eleven_flash_v2_5
[short pause]
<break time="0.3s"/>
eleven_flash_v2_5
[pause]
<break time="0.75s"/>
eleven_flash_v2_5
[long pause]
<break time="1.5s"/>
Supported millisecond break values are converted to seconds before selecting the
v4 Turbo pause tag. These are Jogg compatibility rules; ElevenLabs does not define
an exact duration for each pause tag. Changing models can therefore change the
length of the pause. Flash only converts these three pause tags and preserves
other bracketed text. Delivery tags such as [whispers] need v4 Turbo.Conversion uses a copy for synthesis and preserves your original text. Model
selection, request identity, and billing continue to follow the rules on this page.New v4 Turbo subtitles omit complete square-bracket audio tags and SSML breaks.
When adapting v4 pause tags for Flash, subtitles omit those controls and their
converted breaks while retaining other bracketed text. These v4 compatibility
paths split words at explicit pauses and preserve the returned timing gap.
Native Flash SSML breaks continue to use the existing subtitle processing.
The input-text fallback uses the same filtering when word timestamps are
unavailable. A control-only result has no subtitle text. Existing subtitles are
not rewritten.Flash v2.5 with a timed break:
{ "text": "I will check the schedule.<break time=\"1.5s\" />The next session starts at noon.", "voice_id": "YOUR_ELEVENLABS_VOICE_ID", "model_id": "eleven_flash_v2_5", "idempotency_key": "speech-example-flash-pause"}
v4 Turbo with delivery and pause tags:
{ "text": "[whispers] The room is quiet. [short pause] You can begin.", "voice_id": "YOUR_ELEVENLABS_VOICE_ID", "model_id": "eleven_v4_turbo", "idempotency_key": "speech-example-turbo-tags"}
Official ElevenLabs references (checked November 5, 2026):
Keep the returned task_id. Use the same optional idempotency_key only when
retrying the same request. A key already used with a different explicit model
causes a conflict; use a new key when intentionally changing the model or text.Synthesis consumes API credits based on the generated audio duration. After a
timeout, check the existing speech task
when its ID is known, or retry the unchanged request with its original key.
Avoid creating another paid request just because the connection timed out.
ElevenLabs-only speech model. Omit to use eleven_flash_v2_5 for ElevenLabs voices and retain the voice provider's existing behavior otherwise. Explicit values for other providers, empty strings, null, and unsupported model IDs are rejected.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"JoggAI API","colors":{"primary":"#2E5CFF","light":"#2E5CFF","dark":"#2E5CFF"},"logo":{"light":"https://mintcdn.com/joggai/2WfnmgQwwQkeXdv3/logo/Group%201312320557.png?fit=max\u0026auto=format\u0026n=2WfnmgQwwQkeXdv3\u0026q=85\u0026s=60564135d6f732afa55cb2402b5b822d","dark":"https://mintcdn.com/joggai/2WfnmgQwwQkeXdv3/logo/Dark-logo.png?fit=max\u0026auto=format\u0026n=2WfnmgQwwQkeXdv3\u0026q=85\u0026s=aa8916e58a85e73105f1d28ef6357d6f"},"favicon":"https://mintcdn.com/joggai/2WfnmgQwwQkeXdv3/logo/Group%201312319951.png?fit=max\u0026auto=format\u0026n=2WfnmgQwwQkeXdv3\u0026q=85\u0026s=7670acffaa09107ec308969f94fe1f17","navbar":{"links":[{"href":"mailto:support@jogg.ai","label":"Support"}],"primary":{"type":"button","label":"Get Started","href":"https://app.jogg.ai/"}},"footer":{"socials":{"x":"https://x.com/Jogg_ai","facebook":"https://www.facebook.com/profile.php?id=61560344774204","linkedin":"https://www.linkedin.com/company/jogg-ai","youtube":"https://www.youtube.com/@joggai","discord":"https://discord.gg/RwrwZcSRCq"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Roadmap","icon":"pencil","href":"https://updates.jogg.ai/roadmap"},{"anchor":"Changelog","icon":"code","href":"https://updates.jogg.ai/changelog"},{"anchor":"Share Your Ideas","icon":"envelope","href":"https://updates.jogg.ai/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"joggai","hasAudioNarration":false,"actualSubdomain":"joggai","customDomains":["docs.jogg.ai"],"gitSource":{"type":"github","owner":"joggai-tech","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6af183882126ef8f812fc240","clientVersion":"0.0.4088","searchFilterCounts":[{"language":"default","tag":"API Documentation","count":57},{"language":"default","tag":"Workflows Guides","count":13},{"language":"default","tag":"Video","count":13},{"language":"default","tag":"Avatar","count":7},{"language":"default","tag":"Asset","count":5},{"language":"default","tag":"Webhook","count":5},{"language":"default","tag":"Create Avatar Videos","count":4},{"language":"default","tag":"QuickStart","count":4},{"language":"default","tag":"Voice","count":4},{"language":"default","tag":"Product","count":2}]},"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/v2/Voice/SynthesizeSpeech","slug":"/api-reference/v2/Voice/SynthesizeSpeech","pageMetadata":{"title":"Synthesize Speech","description":"Generate speech with an optional ElevenLabs model: Flash v2.5 or v4 Turbo.","openapi":"POST /v2/audio/tts/synthesize","href":"/api-reference/v2/Voice/SynthesizeSpeech"},"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: \"Generate speech with an optional ElevenLabs model: Flash v2.5 or v4 Turbo.\"\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`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Generate speech audio from text using a public voice or a custom voice you can access.\nThe result includes a task ID, audio URL, and a subtitle URL when available.`}),`\n`,_jsx(Heading,{level:`2`,id:`choose-a-model`,children:`Choose a model`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`model_id`}),` is `,_jsx(_components.strong,{children:`optional`}),` and applies only to ElevenLabs voices.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Value`}),_jsx(_components.th,{children:`Behavior`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Omitted`}),_jsxs(_components.td,{children:[`Uses `,_jsx(_components.code,{children:`eleven_flash_v2_5`}),` for an ElevenLabs voice`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`eleven_flash_v2_5`})}),_jsx(_components.td,{children:`Selects Flash v2.5`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`eleven_v4_turbo`})}),_jsx(_components.td,{children:`Selects v4 Turbo`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Empty strings, whitespace, `,_jsx(_components.code,{children:`null`}),`, non-string values, and all other model IDs are\nrejected. For a voice from another provider, omit `,_jsx(_components.code,{children:`model_id`}),` to keep that\nprovider’s existing behavior; explicitly choosing an ElevenLabs model is rejected.`]}),`\n`,_jsxs(_components.p,{children:[`Find a `,_jsx(_components.code,{children:`voice_id`}),` in `,_jsx(_components.a,{href:`/api-reference/v2/Voice/GetVoices`,children:`Get Voices`}),` or\n`,_jsx(_components.a,{href:`/api-reference/v2/Voice/GetCustomVoices`,children:`Get Custom Voices`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`pauses-and-audio-tags`,children:`Pauses and audio tags`}),`\n`,_jsx(_components.p,{children:`ElevenLabs documents different text controls for these models:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Model`}),_jsxs(_components.th,{children:[`SSML `,_jsx(_components.code,{children:`\u003cbreak>`})]}),_jsx(_components.th,{children:`Audio tags`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`eleven_flash_v2_5`})}),_jsxs(_components.td,{children:[`Supported: `,_jsx(_components.code,{children:`\u003cbreak time=\"1.5s\" />`}),`. Use seconds, with a maximum of 3 seconds per break.`]}),_jsx(_components.td,{children:`Does not support the square-bracket audio-tag controls used by v3/v4.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`eleven_v4_turbo`})}),_jsx(_components.td,{children:`Not supported.`}),_jsxs(_components.td,{children:[`Supports instructions such as `,_jsx(_components.code,{children:`[whispers]`}),`, `,_jsx(_components.code,{children:`[laughs]`}),`, `,_jsx(_components.code,{children:`[short pause]`}),`, `,_jsx(_components.code,{children:`[pause]`}),`, and `,_jsx(_components.code,{children:`[long pause]`}),` inside the text.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Place the control directly in `,_jsx(_components.code,{children:`text`}),`; no additional tag parameter is needed.\nPause tags do not specify a fixed number of seconds, so they are not an exact\nreplacement for a timed SSML break. Delivery can vary with the voice and context.\nElevenLabs also warns that excessive SSML breaks can cause faster speech or audio\nartifacts.`]}),`\n`,_jsx(_components.p,{children:`Jogg adapts pause syntax when sending the synthesis request:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Selected model`}),_jsx(_components.th,{children:`Input control`}),_jsx(_components.th,{children:`Sent to ElevenLabs`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`eleven_v4_turbo`})}),_jsx(_components.td,{children:`Timed break greater than 0 and up to 0.5 seconds`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`[short pause]`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`eleven_v4_turbo`})}),_jsx(_components.td,{children:`Timed break over 0.5 and up to 1 second`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`[pause]`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`eleven_v4_turbo`})}),_jsx(_components.td,{children:`Timed break over 1 second, including breaks over 2 seconds`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`[long pause]`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`eleven_v4_turbo`})}),_jsx(_components.td,{children:`Zero-second break`}),_jsx(_components.td,{children:`Removed`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`eleven_flash_v2_5`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`[short pause]`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`\u003cbreak time=\"0.3s\"/>`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`eleven_flash_v2_5`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`[pause]`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`\u003cbreak time=\"0.75s\"/>`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`eleven_flash_v2_5`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`[long pause]`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`\u003cbreak time=\"1.5s\"/>`})})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Supported millisecond break values are converted to seconds before selecting the\nv4 Turbo pause tag. These are Jogg compatibility rules; ElevenLabs does not define\nan exact duration for each pause tag. Changing models can therefore change the\nlength of the pause. Flash only converts these three pause tags and preserves\nother bracketed text. Delivery tags such as `,_jsx(_components.code,{children:`[whispers]`}),` need v4 Turbo.`]}),`\n`,_jsx(_components.p,{children:`Conversion uses a copy for synthesis and preserves your original text. Model\nselection, request identity, and billing continue to follow the rules on this page.`}),`\n`,_jsx(_components.p,{children:`New v4 Turbo subtitles omit complete square-bracket audio tags and SSML breaks.\nWhen adapting v4 pause tags for Flash, subtitles omit those controls and their\nconverted breaks while retaining other bracketed text. These v4 compatibility\npaths split words at explicit pauses and preserve the returned timing gap.\nNative Flash SSML breaks continue to use the existing subtitle processing.\nThe input-text fallback uses the same filtering when word timestamps are\nunavailable. A control-only result has no subtitle text. Existing subtitles are\nnot rewritten.`}),`\n`,_jsx(_components.p,{children:`Flash v2.5 with a timed break:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,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:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"I will check the schedule.\u003cbreak time=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`1.5s`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` />The next session starts at noon.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"voice_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_ELEVENLABS_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:` \"model_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"eleven_flash_v2_5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"idempotency_key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"speech-example-flash-pause\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`v4 Turbo with delivery and pause tags:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,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:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"[whispers] The room is quiet. [short pause] You can begin.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"voice_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_ELEVENLABS_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:` \"model_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"eleven_v4_turbo\"`}),_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:` \"idempotency_key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"speech-example-turbo-tags\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Official ElevenLabs references (checked November 5, 2026):`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`https://elevenlabs.io/docs/help-center/product/core-capabilities/text-to-speech/how-can-i-add-pauses`,children:`Pause syntax, supported models, and the 3-second limit`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`https://elevenlabs.io/docs/help-center/product/core-capabilities/text-to-speech/how-do-audio-tags-work-with-eleven-v3-and-v4`,children:`Audio tags, including explicit v4 Turbo support`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`https://elevenlabs.io/docs/overview/capabilities/text-to-speech/best-practices#prompting-eleven-v4`,children:`Prompting guidance and pause-tag examples`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`https://elevenlabs.io/blog/ssml-tags-explained`,children:`Official SSML guide: audio-tag compatibility FAQ`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`example-select-v4-turbo`,children:`Example: select v4 Turbo`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,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:`10`,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:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.jogg.ai/v2/audio/tts/synthesize'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'x-api-key: YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --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:`#0550AE`,\"--shiki-dark\":`#569CD6`},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:` \"text\": \"Hello from JoggAI.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"voice_id\": \"YOUR_ELEVENLABS_VOICE_ID\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model_id\": \"eleven_v4_turbo\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"idempotency_key\": \"speech-example-turbo\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`To use the default Flash v2.5 model, omit `,_jsx(_components.code,{children:`model_id`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Hello from JoggAI.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"voice_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_ELEVENLABS_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:` \"idempotency_key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"speech-example-flash\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`retry-the-same-request`,children:`Retry the same request`}),`\n`,_jsxs(_components.p,{children:[`Keep the returned `,_jsx(_components.code,{children:`task_id`}),`. Use the same optional `,_jsx(_components.code,{children:`idempotency_key`}),` only when\nretrying the same request. A key already used with a different explicit model\ncauses a conflict; use a new key when intentionally changing the model or text.`]}),`\n`,_jsxs(_components.p,{children:[`Synthesis consumes API credits based on the generated audio duration. After a\ntimeout, check the existing `,_jsx(_components.a,{href:`/api-reference/v2/Voice/GetSpeechTask`,children:`speech task`}),`\nwhen its ID is known, or retry the unchanged request with its original key.\nAvoid creating another paid request just because the connection timed out.`]}),`\n`,_jsx(Heading,{level:`2`,id:`use-the-same-selection-through-mcp`,children:`Use the same selection through MCP`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`jogg_post_audio_tts_synthesize`}),` tool accepts the same optional field under\n`,_jsx(_components.code,{children:`body.model_id`}),`. See `,_jsx(_components.a,{href:`/mcp/tools-billing-safety#speech-model-selection`,children:`MCP speech model selection`}),`\nfor a `,_jsx(_components.code,{children:`tools/call`}),` example.`]})]})}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":"Synthesize Speech","description":"Generate speech with an optional ElevenLabs model: Flash v2.5 or v4 Turbo.","openapi":"POST /v2/audio/tts/synthesize","href":"/api-reference/v2/Voice/SynthesizeSpeech"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Choose a model","slug":"choose-a-model","depth":2,"children":[]},{"title":"Pauses and audio tags","slug":"pauses-and-audio-tags","depth":2,"children":[]},{"title":"Example: select v4 Turbo","slug":"example-select-v4-turbo","depth":2,"children":[]},{"title":"Retry the same request","slug":"retry-the-same-request","depth":2,"children":[]},{"title":"Use the same selection through MCP","slug":"use-the-same-selection-through-mcp","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"jogg_post_audio_tts_synthesize","tags":["Voice"],"summary":"Synthesize speech","description":"Generate speech with an optional ElevenLabs model: Flash v2.5 or v4 Turbo.","requestBody":"83600919-05e3-46c6-bf51-28082b10bb7c","responses":{"200":"b0574814-ed3a-4b3e-ba00-f01ac9c92734"},"method":"post","type":"path","servers":["96615429-67a8-4f47-8174-a31957b3c19f"],"security":["71ba0c86-b503-42ce-a9fe-0fa52c0002ef"],"path":"/v2/audio/tts/synthesize","baseUrlOptions":["https://api.jogg.ai"],"title":"Synthesize speech","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["text","voice_id"],"properties":{"text":{"type":"string","minLength":1,"description":"Text to synthesize.","isRequired":true,"uniqueKey":"text","typeLabel":"string"},"voice_id":{"type":"string","minLength":1,"description":"Public voice or an authorized custom voice ID.","isRequired":true,"uniqueKey":"voice_id","typeLabel":"string"},"model_id":{"type":"string","description":"ElevenLabs-only speech model. Omit to use eleven_flash_v2_5 for ElevenLabs voices and retain the voice provider's existing behavior otherwise. Explicit values for other providers, empty strings, null, and unsupported model IDs are rejected.","enum":["eleven_flash_v2_5","eleven_v4_turbo"],"default":"eleven_flash_v2_5","uniqueKey":"model_id","typeLabel":"enum\u003cstring>"},"idempotency_key":{"type":"string","maxLength":255,"description":"Stable key for retries of this request. Use a new key for a different model or text.","uniqueKey":"idempotency_key","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"defaultModel":{"title":"defaultModel","value":{"text":"Hello from JoggAI.","voice_id":"YOUR_ELEVENLABS_VOICE_ID","idempotency_key":"speech-example-flash"}},"turboModel":{"title":"turboModel","value":{"text":"Hello from JoggAI.","voice_id":"YOUR_ELEVENLABS_VOICE_ID","model_id":"eleven_v4_turbo","idempotency_key":"speech-example-turbo"}},"flashPause":{"title":"flashPause","value":{"text":"I will check the schedule.\u003cbreak time=\"1.5s\" />The next session starts at noon.","voice_id":"YOUR_ELEVENLABS_VOICE_ID","model_id":"eleven_flash_v2_5","idempotency_key":"speech-example-flash-pause"}},"turboAudioTags":{"title":"turboAudioTags","value":{"text":"[whispers] The room is quiet. [short pause] You can begin.","voice_id":"YOUR_ELEVENLABS_VOICE_ID","model_id":"eleven_v4_turbo","idempotency_key":"speech-example-turbo-tags"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"b0574814-ed3a-4b3e-ba00-f01ac9c92734":{"description":"Speech task result. Check the business code before reading data.","content":{"application/json":{"schema":{"type":"object","required":["code","msg"],"properties":{"code":{"type":"integer","description":"Business status code:\n* 0 - Success\n* 10104 - Record not found\n* 10105 - Invalid API key\n* 18020 - Insufficient credit\n* 18025 - No permission to call APIs\n* 40000 - Parameter error\n* 50000 - System error\n","example":0,"isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"msg":{"type":"string","description":"Response message","example":"Success","isRequired":true,"uniqueKey":"msg","typeLabel":"string"},"data":{"type":"object","required":["task_id","status","progress","url","subtitle_url","duration_seconds"],"properties":{"task_id":{"type":"string","description":"Speech task ID to keep for status queries and retries.","example":"tts_123","isRequired":true,"uniqueKey":"data.task_id","typeLabel":"string"},"status":{"type":"string","enum":["processing","succeeded","failed"],"example":"succeeded","isRequired":true,"uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"progress":{"type":"integer","minimum":0,"maximum":100,"example":100,"isRequired":true,"uniqueKey":"data.progress","typeLabel":"integer"},"url":{"type":"string","description":"Generated audio URL when the task succeeds; otherwise empty.","isRequired":true,"uniqueKey":"data.url","typeLabel":"string"},"subtitle_url":{"type":"string","description":"Subtitle file URL when available; otherwise empty.","isRequired":true,"uniqueKey":"data.subtitle_url","typeLabel":"string"},"duration_seconds":{"type":"number","description":"Generated audio duration in seconds.","example":2.5,"isRequired":true,"uniqueKey":"data.duration_seconds","typeLabel":"number"},"error_message":{"type":"string","description":"Failure details when the task fails.","uniqueKey":"data.error_message","typeLabel":"string"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":0,"msg":"Success","data":{"task_id":"tts_123","status":"succeeded","progress":100,"url":"\u003cstring>","subtitle_url":"\u003cstring>","duration_seconds":2.5,"error_message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"71ba0c86-b503-42ce-a9fe-0fa52c0002ef":{"apiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key for authentication. Obtain your key from the JoggAI dashboard.","scopes":[],"schemeName":"apiKeyAuth"}}},"servers":{"96615429-67a8-4f47-8174-a31957b3c19f":{"url":"https://api.jogg.ai","description":"Production server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key for authentication. Obtain your key from the JoggAI dashboard.","scopes":[],"schemeName":"apiKeyAuth"},"schema":{"title":"x-api-key","type":"string","description":"API key for authentication. Obtain your key from the JoggAI dashboard.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKeyAuth","name":"x-api-key"}],"title":"apiKeyAuth"}]},"originalFileLocation":"api-reference/v2/openapi-v2.yaml"},"subdomain":"joggai","siteName":"JoggAI API","title":"Synthesize Speech - JoggAI API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-09T08:25:52.108Z","originalFileLocation":"api-reference/v2/Voice/SynthesizeSpeech.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=\"Generate speech with an optional ElevenLabs model: Flash v2.5 or v4 Turbo.\">\u003cmeta data-mint-head name=\"application-name\" content=\"JoggAI API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/joggai/MKGGnsZD94NcUa6d/_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/joggai/MKGGnsZD94NcUa6d/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/joggai/MKGGnsZD94NcUa6d/_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/joggai/MKGGnsZD94NcUa6d/_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/joggai/MKGGnsZD94NcUa6d/_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/joggai/MKGGnsZD94NcUa6d/_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/joggai/MKGGnsZD94NcUa6d/_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/joggai/MKGGnsZD94NcUa6d/_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/joggai/MKGGnsZD94NcUa6d/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Synthesize Speech - JoggAI API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Generate speech with an optional ElevenLabs model: Flash v2.5 or v4 Turbo.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"JoggAI API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.jogg.ai/api-reference/v2/Voice/SynthesizeSpeech\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://joggai.mintlify.site/_mintlify/api/og/v2?division=Voice\u0026amp;title=Synthesize+Speech\u0026amp;description=Generate+speech+with+an+optional+ElevenLabs+model%3A+Flash+v2.5+or+v4+Turbo.\u0026amp;theme=c6e0cb515a374c922f00f95d\u0026amp;signature=11432ff2a72cff64e3e4fafd23562e114cd70e2b42799be3f9449065e29ce9b5\">\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=\"Synthesize Speech - JoggAI API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Generate speech with an optional ElevenLabs model: Flash v2.5 or v4 Turbo.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://joggai.mintlify.site/_mintlify/api/og/v2?division=Voice\u0026amp;title=Synthesize+Speech\u0026amp;description=Generate+speech+with+an+optional+ElevenLabs+model%3A+Flash+v2.5+or+v4+Turbo.\u0026amp;theme=c6e0cb515a374c922f00f95d\u0026amp;signature=11432ff2a72cff64e3e4fafd23562e114cd70e2b42799be3f9449065e29ce9b5\">\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/joggai/MKGGnsZD94NcUa6d/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"JoggAI API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2E5CFF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.jogg.ai/api-reference/v2/Voice/SynthesizeSpeech\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/v2/Voice/SynthesizeSpeech.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.jogg.ai/#organization\",\"name\":\"JoggAI API\",\"url\":\"https://docs.jogg.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/joggai/2WfnmgQwwQkeXdv3/logo/Group%201312320557.png?fit=max\u0026auto=format\u0026n=2WfnmgQwwQkeXdv3\u0026q=85\u0026s=60564135d6f732afa55cb2402b5b822d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.jogg.ai#website\",\"name\":\"JoggAI API\",\"url\":\"https://docs.jogg.ai\",\"publisher\":{\"@id\":\"https://docs.jogg.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.jogg.ai/api-reference/v2/Voice/SynthesizeSpeech#webpage\",\"url\":\"https://docs.jogg.ai/api-reference/v2/Voice/SynthesizeSpeech\",\"name\":\"Synthesize Speech\",\"description\":\"Generate speech with an optional ElevenLabs model: Flash v2.5 or v4 Turbo.\",\"dateModified\":\"2026-11-09T08:25:52.108Z\",\"isPartOf\":{\"@id\":\"https://docs.jogg.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.jogg.ai/api-reference/v2/Voice/SynthesizeSpeech#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.jogg.ai/api-reference/v2/Voice/SynthesizeSpeech#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Voice\",\"item\":\"https://docs.jogg.ai/api-reference/v2/Voice/GetVoices\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Synthesize Speech\",\"item\":\"https://docs.jogg.ai/api-reference/v2/Voice/SynthesizeSpeech\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.jogg.ai/api-reference/v2/Voice/SynthesizeSpeech#apireference\",\"headline\":\"Synthesize Speech\",\"name\":\"Synthesize Speech\",\"description\":\"Generate speech with an optional ElevenLabs model: Flash v2.5 or v4 Turbo.\",\"url\":\"https://docs.jogg.ai/api-reference/v2/Voice/SynthesizeSpeech\",\"mainEntityOfPage\":{\"@id\":\"https://docs.jogg.ai/api-reference/v2/Voice/SynthesizeSpeech#webpage\"},\"dateModified\":\"2026-11-09T08:25:52.108Z\",\"publisher\":{\"@id\":\"https://docs.jogg.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.jogg.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"JoggAI API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"JoggAI API","nav":{"global":{"anchors":[{"anchor":"Roadmap","icon":"pencil","href":"https://updates.jogg.ai/roadmap"},{"anchor":"Changelog","icon":"code","href":"https://updates.jogg.ai/changelog"},{"anchor":"Share Your Ideas","icon":"envelope","href":"https://updates.jogg.ai/"}]},"tabs":[{"tab":"Home","pages":[{"title":"Home","href":"/home/WelcometoJoggAI"}]},{"tab":"API Documentation","groups":[{"group":"QuickStart","pages":[{"title":"Getting Started","href":"/api-reference/v2/QuickStart/GettingStarted"},{"title":"Pricing","href":"/api-reference/v2/QuickStart/Pricing"},{"title":"Error Handling","href":"/api-reference/v2/QuickStart/ErrorHandling"},{"title":"Rate Limits","href":"/api-reference/v2/QuickStart/RateLimits"}]},{"group":"Workflows Guides","pages":[{"group":"Create Avatar Videos","pages":[{"title":"Create Talking Avatar Videos","href":"/api-reference/v2/API Documentation/CreateAvatarVideos"},{"title":"Avatar Videos with Photo Avatars","href":"/api-reference/v2/API Documentation/AvatarVideosWithPhotoAvatar"},{"title":"Avatar Videos with Transparent Background","href":"/api-reference/v2/API Documentation/AvatarVideosTransparentBackground"},{"title":"Avatar Videos with Custom Audio","href":"/api-reference/v2/API Documentation/AvatarVideosWithAudioSource"}]},{"title":"Create Video from URL/Product","href":"/api-reference/v2/API Documentation/URLtoVideo"},{"title":"Create Video from Template","href":"/api-reference/v2/API Documentation/CreateVideoFromTemplate"},{"title":"Lip Sync Video","href":"/api-reference/v2/API Documentation/LipSyncVideo"},{"title":"Video Translation","href":"/api-reference/v2/API Documentation/VideoTranslation"},{"title":"Create Photo Avatar","href":"/api-reference/v2/API Documentation/CreatePhotoAvatar"},{"title":"Upload Media Assets","href":"/api-reference/v2/API Documentation/UploadMedia"},{"title":"AI Script Generation","href":"/api-reference/v2/API Documentation/AIScripts"},{"title":"Webhook Integration Guide","href":"/api-reference/v2/API Documentation/WebhookIntegration"},{"title":"Check Video Result \u0026 Status","href":"/api-reference/v2/API Documentation/GetResult"}]},{"group":"Video","pages":[{"title":"Create Video from Avatar","openapi":"POST /v2/create_video_from_avatar","href":"/api-reference/v2/Video/CreateVideoFromAvatar"},{"title":"Get Avatar Video Status","openapi":"GET /v2/avatar_video/{id}","href":"/api-reference/v2/Video/AvatarVideoGet"},{"title":"Create Video from Product","openapi":"POST /v2/create_video_from_product","href":"/api-reference/v2/Video/CreateVideoFromProduct"},{"title":"Submit Preview List","openapi":"POST /v2/create_video_from_product/preview_list","href":"/api-reference/v2/Video/SubmitPreviewList"},{"title":"Render Video from Preview","openapi":"POST /v2/create_video_from_product/render_single_preview","href":"/api-reference/v2/Video/RenderSinglePreview"},{"title":"Get Product Video Status","openapi":"GET /v2/product_video/{product_video_id}","href":"/api-reference/v2/Video/ProductVideoGet"},{"title":"Create Video with Template","openapi":"POST /v2/create_video_with_template","href":"/api-reference/v2/Video/CreateVideoWithTemplate"},{"title":"Get Template Video","openapi":"GET /v2/template_video/{video_id}","href":"/api-reference/v2/Video/TemplateVideoGet"},{"title":"Create Lip Sync Video Task","openapi":"POST /v2/create_lip_sync_video","href":"/api-reference/v2/Video/CreateLipSyncVideo"},{"title":"Get Lip Sync Video Task","openapi":"GET /v2/lip_sync_video/{task_id}","href":"/api-reference/v2/Video/GetLipSyncVideo"},{"title":"Translate Video","openapi":"POST /v2/video_translate/","href":"/api-reference/v2/Video/VideoTranslateCreate"},{"title":"Check Translation Status","openapi":"GET /v2/video_translate/{video_translate_id}","href":"/api-reference/v2/Video/VideoTranslateGet"},{"title":"Get Target Languages","openapi":"GET /v2/video_translate/target_languages","href":"/api-reference/v2/Video/VideoTranslateTargetLanguagesList"}]},{"group":"Avatar","pages":[{"title":"Get Public Avatars","openapi":"GET /v2/avatars/public","href":"/api-reference/v2/Avatar/PublicAvatarsGet"},{"title":"Get Custom Avatars","openapi":"GET /v2/avatars/custom","href":"/api-reference/v2/Avatar/CustomAvatarsGet"},{"title":"Get Photo Avatars","openapi":"GET /v2/avatars/photo_avatars","href":"/api-reference/v2/Avatar/PhotoAvatarsGet"},{"title":"Generate Photo Avatar","openapi":"POST /v2/photo_avatar/photo/generate","href":"/api-reference/v2/Avatar/PhotoAvatarGenerate"},{"title":"Get Photo Avatar Status","openapi":"GET /v2/photo_avatar/photo","href":"/api-reference/v2/Avatar/PhotoAvatarStatusGet"},{"title":"Add Motion to Photo Avatar","openapi":"POST /v2/photo_avatar/add_motion","href":"/api-reference/v2/Avatar/PhotoAvatarMotionAdd"},{"title":"Check Motion Status","openapi":"GET /v2/photo_avatar","href":"/api-reference/v2/Avatar/MotionStatusCheck"}]},{"group":"Voice","pages":[{"title":"Get Voices","openapi":"GET /v2/voices","href":"/api-reference/v2/Voice/GetVoices"},{"title":"Get Custom Voices","openapi":"GET /v2/voices/custom","description":"Retrieve a list of user's custom timbres with filtering options.\nReturns user's personalized voice collection.\n","href":"/api-reference/v2/Voice/GetCustomVoices"},{"title":"Synthesize Speech","openapi":"POST /v2/audio/tts/synthesize","href":"/api-reference/v2/Voice/SynthesizeSpeech"},{"title":"Get Speech Task","description":"Retrieve speech synthesis status and audio results without creating a new task.","openapi":"GET /v2/audio/tts/tasks/{task_id}","href":"/api-reference/v2/Voice/GetSpeechTask"}]},{"group":"Asset","pages":[{"title":"Create AI Script","openapi":"POST /v2/ai_scripts","href":"/api-reference/v2/Asset/CreateAIScript"},{"title":"Get AI Script Result","openapi":"GET /v2/ai_scripts/results/{task_id}","href":"/api-reference/v2/Asset/GetAIScriptResult"},{"title":"Get Background Music","openapi":"GET /v2/musics","href":"/api-reference/v2/Asset/GetMusic"},{"title":"Get Visual Styles","openapi":"GET /v2/visual_styles","href":"/api-reference/v2/Asset/GetVisualStyles"},{"title":"Upload Asset","openapi":"POST /v2/upload/asset","href":"/api-reference/v2/Asset/UploadAsset"}]},{"group":"Template","pages":[{"title":"Get Templates","openapi":"GET /v2/templates/custom","href":"/api-reference/v2/Template/GetTemplates"},{"title":"Get Template by ID","openapi":"GET /v2/template/custom/{id}","href":"/api-reference/v2/Template/GetTemplateById"}]},{"group":"Product","pages":[{"title":"Create Product","openapi":"POST /v2/product","href":"/api-reference/v2/Product/CreateProduct"},{"title":"Update Product","openapi":"PUT /v2/product","href":"/api-reference/v2/Product/UpdateProduct"}]},{"group":"User","pages":[{"title":"Get User Info","openapi":"GET /v2/user/whoami","href":"/api-reference/v2/User/GetUserInfo"},{"title":"Get Remaining Quota","openapi":"GET /v2/user/remaining_quota","href":"/api-reference/v2/User/GetRemainingQuota"}]},{"group":"Webhook","pages":[{"title":"List Webhook Endpoints","openapi":"GET /v2/endpoints","href":"/api-reference/v2/Webhook/ListWebhookEndpoints"},{"title":"Add Webhook Endpoint","openapi":"POST /v2/endpoint","href":"/api-reference/v2/Webhook/AddWebhookEndpoint"},{"title":"Update Webhook Endpoint","openapi":"PUT /v2/endpoint/{endpoint_id}","href":"/api-reference/v2/Webhook/UpdateWebhookEndpoint"},{"title":"Delete Webhook Endpoint","openapi":"DELETE /v2/endpoint/{endpoint_id}","href":"/api-reference/v2/Webhook/DeleteWebhookEndpoint"},{"title":"List Webhook Events","openapi":"GET /v2/events","href":"/api-reference/v2/Webhook/ListWebhookEvents"}]}]},{"tab":"V1","hidden":true,"pages":[{"title":"V1","href":"/api-reference/v1/QuickStart/GettingStarted"}]}]},"basePath":"","title":"Synthesize Speech - JoggAI API","buildId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","deploymentId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-5FCzAcfS.js","utils-SLtAG4EZ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-2DZi8ZMu.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D7J3nkzE.js","snippetPresets-D0Alv0AH.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BI4qNJ2c.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BD3uyr8j.js","shallow-D8iEBr5z.js","getApiPlaygroundDisplay-CgNP4lzR.js","CodeSnippet-CX-QHuMs.js","CodeSnippets-VlXE-ZUf.js","Page-D9ithiIZ.js","getPastedJson-DYNQkZ1M.js","icon-CzacdwOi.js","MethodPill-2JVqoYKi.js","DuplicateIcon-_xVXs-U8.js","createIcon-BRHrweLo.js","DynamicMarkdown-mQG_iQiE.js","SectionHeading-DMpJzv8f.js","axios-vUo_bRtp.js","Markdown-5FGIym-8.js","clsx-D-TRO5q5.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CdrJecqK.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-CHlcWBLM.js"]}