Creates a voice from a text description, with no reference audio. Pass the returned voice_id as pipeline_config.tts_config.tts_voice_id when you start a session.
POST
/
v1
/
voices
/
design
Design Voice
curl --request POST \ --url https://api.vivix.ai/v1/voices/design \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data @- <<EOF{ "instruction": "A mature male news anchor with a deep, steady voice", "sample_text": "Welcome to tonight's broadcast.", "language": "zh", "name": "Studio Anchor"}EOF
import requests
url = "https://api.vivix.ai/v1/voices/design"
payload = {
"instruction": "A mature male news anchor with a deep, steady voice",
"sample_text": "Welcome to tonight's broadcast.",
"language": "zh",
"name": "Studio Anchor"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
instruction: 'A mature male news anchor with a deep, steady voice',
sample_text: 'Welcome to tonight\'s broadcast.',
language: 'zh',
name: 'Studio Anchor'
})
};
fetch('https://api.vivix.ai/v1/voices/design', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
Only the tts_voice_id is required: the service fills tts_provider / tts_model_id for that voice.
Is this the same as Clone Voice?
Both endpoints return a usable voice in the same shape. The difference is where the voice comes from:
Clone Voice
Design Voice
Input
Reference audio (file_id)
Text description (instruction)
You need to record audio first
Yes
No
Extra response field
—
preview_audio_url
Billing against max_voices
Yes
Yes, same quota
They share one voice quota, so a designed voice counts against the same max_voices limit as a cloned one.
Writing the instruction
The instruction describes the voice, not the content. Keep it concrete and about delivery:
A warm female narrator in her thirties, slightly husky, unhurried pace, gentle emphasis on the ends of sentences.
Preview audio
preview_audio_url is a permanent, unauthenticated WAV (mono, 16 kHz) you can play directly in an <audio> element or download.The field is absent when the preview could not be generated. A missing preview does not mean the voice failed — the voice is still usable for sessions. There is no status field to poll: the response itself means the voice is ready.
Errors
Error responses use the same {code, message, data} envelope; a non-zero code identifies the error.
Case
Error code
Missing instruction or name
20003 missing required parameter
Missing sample_text for a language other than zh / en
20003 missing required parameter
instruction or sample_text exceeds 1500 characters
20004 invalid parameter
name exceeds 100 characters
20004 invalid parameter
language is invalid
20004 invalid parameter
The voice quota (max_voices) is reached (HTTP 403)
30010 voice clone quota exceeded
The design provider call failed (HTTP 502)
30007 voice clone provider failed
The API key is missing or invalid
10001 missing api key or 10003 invalid api key
Authorizations
Authorization
string
header
required
Your Vivix API key. Keep it on your server.
Body
application/json
instruction
string
required
Describes the voice to synthesize: timbre, age, speaking style, pace. At most 1500 characters. Required.
name
string
required
Display name, at most 100 characters. Required.
sample_text
string
Text the voice speaks in the generated preview. At most 1500 characters. Required when language is neither Chinese nor English; optional for zh and en, where the service supplies a default.
language
string
Language of sample_text: zh (Chinese), en (English), fr (French), de (German), ja (Japanese), ko (Korean), ru (Russian), pt (Portuguese), th (Thai), id (Indonesian), vi (Vietnamese), it (Italian), es (Spanish), ms (Malay), fil (Filipino), ar (Arabic).
Response
200 - application/json
Success
code
integer
required
0 on success; any other value is an error code.
message
string
required
success, or an English error description.
data
object
required
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Vivix API Platform","description":"Build real-time interactive avatars, worlds, and blazing fast video generation with the Vivix API.","colors":{"primary":"#202124","light":"#E8EAED","dark":"#202124"},"logo":{"light":"https://mintcdn.com/vivix-20d305ce/_pH0P9NPGXmrYjpb/logo/light.svg?fit=max\u0026auto=format\u0026n=_pH0P9NPGXmrYjpb\u0026q=85\u0026s=baf0ff5242cbe15c7109578472ce97da","dark":"https://mintcdn.com/vivix-20d305ce/_pH0P9NPGXmrYjpb/logo/dark.svg?fit=max\u0026auto=format\u0026n=_pH0P9NPGXmrYjpb\u0026q=85\u0026s=589e9a9cf678ffb3e4d02b257709d2b2","href":"https://platform.vivix.ai"},"favicon":"https://mintcdn.com/vivix-20d305ce/_pH0P9NPGXmrYjpb/favicon.png?fit=max\u0026auto=format\u0026n=_pH0P9NPGXmrYjpb\u0026q=85\u0026s=5c253eff0d790be37c1e534f29b580b0","appearance":{"default":"light","strict":true},"background":{"color":{"light":"#F9F6F4","dark":"#141413"}},"navbar":{"primary":{"type":"button","label":"Developer Platform","href":"https://platform.vivix.ai"}},"seo":{"indexing":"navigable"},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","href":"overview/introduction"},{"language":"cn","navbar":{"primary":{"type":"button","label":"开发者平台","href":"https://platform.vivix.ai"}},"href":"cn/overview/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"vivix-20d305ce","hasAudioNarration":false,"actualSubdomain":"vivix-20d305ce","customDomains":["docs.vivix.ai"],"gitSource":{"type":"gitlab","owner":"vivix-labs","repo":"vivix-api-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"projectId":689,"hostUrl":"https://gitlab.vivix.work","mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6b0ac690111864876b675606","clientVersion":"0.0.4342","searchFilterCounts":[{"language":"en","tag":"API","count":79},{"language":"cn","tag":"API","count":79},{"language":"en","tag":"A1: Streaming Avatar","count":69},{"language":"cn","tag":"A1: Streaming Avatar","count":69},{"language":"cn","tag":"API 参考","count":53},{"language":"en","tag":"API reference","count":50},{"language":"en","tag":"Server events","count":23},{"language":"cn","tag":"服务端事件","count":23},{"language":"en","tag":"CLI","count":9},{"language":"en","tag":"Client events","count":9},{"language":"cn","tag":"CLI","count":9},{"language":"cn","tag":"客户端事件","count":9},{"language":"en","tag":"Integrate your app","count":7},{"language":"cn","tag":"集成应用","count":7},{"language":"en","tag":"Get started","count":6},{"language":"en","tag":"Characters","count":6},{"language":"en","tag":"Sessions","count":6},{"language":"cn","tag":"角色","count":6},{"language":"cn","tag":"会话","count":6},{"language":"cn","tag":"音色","count":6}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"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":"site-roles","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":"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":"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":"turbopuffer-dual-write","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":"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":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#content-container:has(#model-changelog){max-width:none!important}#model-changelog,#model-changelog *{border-radius:0!important}#model-changelog>[data-as=\"p\"]{display:block;margin:1.25em 0}#model-changelog .changelog-date{display:block;margin-top:-12px;color:#626262;font-size:14px}#model-changelog .changelog-examples{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:24px;margin:24px 0 32px}#model-changelog .changelog-example{min-width:0;margin:0}#model-changelog .changelog-examples video{display:block;width:100%;aspect-ratio:16 / 9;margin:0;object-fit:contain;background:#000}#model-changelog .changelog-caption{margin-top:12px;color:#4b4b4b;font-size:14px;line-height:1.6}#model-changelog .changelog-caption strong{display:block;color:#202124;font-weight:600}@media (max-width: 640px){#model-changelog .changelog-examples{grid-template-columns:minmax(0, 1fr)}}:root{--vivix-bg: #f9f6f4;--vivix-active: #e9e5e0;--vivix-line: #ddd8d3;--vivix-ink: #313131;--vivix-muted: #70757d;--vivix-note-bg: #f6f6f6}#sidebar-content li[data-active]>a{background-color:var(--vivix-active)!important;color:#202124!important}.callout[data-callout-type=\"note\"]{background-color:var(--vivix-note-bg)!important;border:0!important;border-left:3px solid var(--vivix-muted)!important;border-radius:6px!important}.callout[data-callout-type=\"note\"] [data-component-part=\"callout-content\"],.callout[data-callout-type=\"note\"] [data-component-part=\"callout-icon\"] svg{color:var(--vivix-ink)!important}#navbar{background-color:var(--vivix-bg);border-color:var(--vivix-line)}.nav-tabs-item:is([href=\"/cli/install-and-sign-in\"],[href=\"/cn/cli/install-and-sign-in\"])::after{content:\"Beta\";padding:2px 6px;border:1px solid var(--vivix-line);border-radius:5px;background-color:var(--vivix-active);color:var(--vivix-ink);font-size:10px;font-weight:600;line-height:1.2}.columns>div>figure[data-name=\"frame\"]{height:100%}.cli-screenshot-stack{display:grid;gap:1.5rem;margin-block:1.5rem}.prose .cli-screenshot-stack>*{min-width:0;margin-block:0}@media (max-width: 640px){.prose .cli-more-ideas table{width:100%;min-width:0;table-layout:fixed}.prose .cli-more-ideas :is(th,td):first-child{width:25%}.prose .cli-more-ideas :is(th,td){padding-inline:0.5rem;white-space:normal;overflow-wrap:anywhere}.prose .cli-more-ideas[lang=\"en\"] :is(th,td):first-child{width:35%;overflow-wrap:normal;word-break:normal;hyphens:none}}#w1-reference-pricing-note{background-color:#f0ece8;border-left:3px solid #b6aba0;border-radius:6px;padding:10px 14px;color:#5f6368;font-size:14px;line-height:1.5}#w1-reference-pricing-note strong{color:var(--vivix-ink);font-weight:600}.prose .scripted-performance-sections~h2{margin-top:1.25rem!important;margin-bottom:0.625rem!important}.persona-map{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:16px;margin:28px 0 36px;color:#313131;font-size:13px;line-height:1.5}.persona-group-label{grid-column:1 / -1;color:#61716a;font-size:12px;font-weight:600}.persona-group-label:not(:first-child){margin-top:8px}.persona-speech{grid-column:1 / -1}.persona-outcome{display:flex;flex-direction:column;padding:20px;border:1px solid #ddd8d3;border-radius:16px;background:#f5f1ed}.persona-inputs{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:20px}.persona-inputs a,.persona-single-input{display:flex;flex-direction:column;gap:6px;text-decoration:none!important;border-bottom:0!important;color:#313131!important;font-weight:400}.persona-inputs a:hover .persona-module-title,.persona-single-input:hover .persona-module-title{text-decoration:underline}.persona-inputs a:focus-visible,.persona-single-input:focus-visible{outline:2px solid #617d79;outline-offset:4px;border-radius:3px}.persona-module-title{font-size:15px;line-height:1.4;font-weight:700}.persona-connector{margin:16px 0;text-align:center;color:#7b9788;font-size:23px;line-height:1}.persona-dialogue-scene{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:center}.persona-speech-example{display:flex;flex-direction:column;gap:12px}.persona-viewer{color:#61716a;font-size:13px}.persona-reply{padding:14px 16px;border-radius:14px 14px 14px 3px;background:#fffaf5;border:1px solid #ddd8d3;font-size:15px;line-height:1.5}.persona-scene-caption{margin-top:12px;color:#576962;font-size:13px;line-height:1.6}.persona-map .persona-behavior-scene{width:100%;height:auto;margin:0}.persona-scene-labels{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px;color:#576962;font-size:13px;text-align:center}@media (max-width: 540px){.persona-map,.persona-inputs,.persona-dialogue-scene{grid-template-columns:minmax(0, 1fr)}.persona-speech,.persona-group-label{grid-column:1}.persona-dialogue-scene{gap:12px}}"}]}
{"page":{"pagePath":"streaming-avatar/api-references/voices/design","slug":"/streaming-avatar/api-references/voices/design","pageMetadata":{"title":"Design Voice","openapi":"streaming-avatar/api-references/openapi.json POST /v1/voices/design","description":"Creates a voice from a text description, with no reference audio. Pass the returned `voice_id` as `pipeline_config.tts_config.tts_voice_id` when you start a session.","href":"/streaming-avatar/api-references/voices/design"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Creates a voice from a text description, with no reference audio. Pass the returned \", _jsx(_components.code, {\n children: \"voice_id\"\n }), \" as \", _jsx(_components.code, {\n children: \"pipeline_config.tts_config.tts_voice_id\"\n }), \" when you start a session.\"]\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{jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,CodeBlock,Table}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`Use the voice when you create a session`,id:`use-the-voice-when-you-create-a-session`,children:[_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:` \"pipeline_config\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tts_config\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tts_voice_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"voice_8f2c1a4e\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(_components.p,{children:[`Only the `,_jsx(_components.code,{children:`tts_voice_id`}),` is required: the service fills `,_jsx(_components.code,{children:`tts_provider`}),` / `,_jsx(_components.code,{children:`tts_model_id`}),` for that voice.`]})]}),_jsxs(Accordion,{title:`Is this the same as Clone Voice?`,id:`is-this-the-same-as-clone-voice`,children:[_jsx(_components.p,{children:`Both endpoints return a usable voice in the same shape. The difference is where the voice comes from:`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{}),_jsx(_components.th,{children:`Clone Voice`}),_jsx(_components.th,{children:`Design Voice`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Input`}),_jsxs(_components.td,{children:[`Reference audio (`,_jsx(_components.code,{children:`file_id`}),`)`]}),_jsxs(_components.td,{children:[`Text description (`,_jsx(_components.code,{children:`instruction`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`You need to record audio first`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Extra response field`}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`preview_audio_url`})})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Billing against `,_jsx(_components.code,{children:`max_voices`})]}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Yes, same quota`})]})]})]}),_jsxs(_components.p,{children:[`They share one voice quota, so a designed voice counts against the same `,_jsx(_components.code,{children:`max_voices`}),` limit as a cloned one.`]})]}),_jsxs(Accordion,{title:`Writing the instruction`,id:`writing-the-instruction`,children:[_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`instruction`}),` describes the voice, not the content. Keep it concrete and about delivery:`]}),_jsx(CodeBlock,{filename:``,wrap:`true`,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:`A warm female narrator in her thirties, slightly husky, unhurried pace, gentle emphasis on the ends of sentences.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})]}),_jsxs(Accordion,{title:`Preview audio`,id:`preview-audio`,children:[_jsxs(_components.p,{children:[_jsx(_components.code,{children:`preview_audio_url`}),` is a permanent, unauthenticated WAV (mono, 16 kHz) you can play directly in an `,_jsx(_components.code,{children:`\u003caudio>`}),` element or download.`]}),_jsxs(_components.p,{children:[`The field is `,_jsx(_components.strong,{children:`absent`}),` when the preview could not be generated. A missing preview does `,_jsx(_components.strong,{children:`not`}),` mean the voice failed — the voice is still usable for sessions. There is no status field to poll: the response itself means the voice is ready.`]})]}),_jsxs(Accordion,{title:`Errors`,id:`errors`,children:[_jsxs(_components.p,{children:[`Error responses use the same `,_jsx(_components.code,{children:`{code, message, data}`}),` envelope; a non-zero `,_jsx(_components.code,{children:`code`}),` identifies the error.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Case`}),_jsx(_components.th,{children:`Error code`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Missing `,_jsx(_components.code,{children:`instruction`}),` or `,_jsx(_components.code,{children:`name`})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`20003 missing required parameter`})})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Missing `,_jsx(_components.code,{children:`sample_text`}),` for a language other than `,_jsx(_components.code,{children:`zh`}),` / `,_jsx(_components.code,{children:`en`})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`20003 missing required parameter`})})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`instruction`}),` or `,_jsx(_components.code,{children:`sample_text`}),` exceeds 1500 characters`]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`20004 invalid parameter`})})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`name`}),` exceeds 100 characters`]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`20004 invalid parameter`})})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`language`}),` is invalid`]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`20004 invalid parameter`})})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`The voice quota (`,_jsx(_components.code,{children:`max_voices`}),`) is reached (HTTP 403)`]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`30010 voice clone quota exceeded`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`The design provider call failed (HTTP 502)`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`30007 voice clone provider failed`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`The API key is missing or invalid`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`10001 missing api key`}),` or `,_jsx(_components.code,{children:`10003 invalid api key`})]})]})]})]})]})]})}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":"Design Voice","openapi":"streaming-avatar/api-references/openapi.json POST /v1/voices/design","description":"Creates a voice from a text description, with no reference audio. Pass the returned `voice_id` as `pipeline_config.tts_config.tts_voice_id` when you start a session.","href":"/streaming-avatar/api-references/voices/design"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"designVoice","summary":"Design Voice","description":"Creates a voice from a text description, with no reference audio. Pass the returned `voice_id` as `pipeline_config.tts_config.tts_voice_id` when you start a session.","requestBody":"71a58179-aee4-4734-b929-e50b67574015","responses":{"200":"f3392628-7536-494a-8590-011671f00d34"},"method":"post","type":"path","servers":["30837531-46cf-4bfa-86bb-c2f74bf14773"],"security":["5b5a4624-a5f5-41f4-8544-8a7a1d5ae22d"],"path":"/v1/voices/design","baseUrlOptions":["https://api.vivix.ai"],"title":"Design Voice","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"instruction":{"type":"string","description":"Describes the voice to synthesize: timbre, age, speaking style, pace. At most 1500 characters. Required.","isRequired":true,"uniqueKey":"instruction","typeLabel":"string"},"name":{"type":"string","description":"Display name, at most 100 characters. Required.","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"sample_text":{"type":"string","description":"Text the voice speaks in the generated preview. At most 1500 characters. Required when `language` is neither Chinese nor English; optional for `zh` and `en`, where the service supplies a default.","uniqueKey":"sample_text","typeLabel":"string"},"language":{"type":"string","description":"Language of `sample_text`: `zh` (Chinese), `en` (English), `fr` (French), `de` (German), `ja` (Japanese), `ko` (Korean), `ru` (Russian), `pt` (Portuguese), `th` (Thai), `id` (Indonesian), `vi` (Vietnamese), `it` (Italian), `es` (Spanish), `ms` (Malay), `fil` (Filipino), `ar` (Arabic).","uniqueKey":"language","typeLabel":"string"}},"required":["instruction","name"],"uniqueKey":"","typeLabel":"object"},"example":{"instruction":"A mature male news anchor with a deep, steady voice","sample_text":"Welcome to tonight's broadcast.","language":"zh","name":"Studio Anchor"},"examples":{"Example":{"title":"Example","value":{"instruction":"A mature male news anchor with a deep, steady voice","sample_text":"Welcome to tonight's broadcast.","language":"zh","name":"Studio Anchor"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"f3392628-7536-494a-8590-011671f00d34":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["code","message","data"],"properties":{"code":{"type":"integer","description":"`0` on success; any other value is an error code.","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"message":{"type":"string","description":"`success`, or an English error description.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"data":{"type":"object","properties":{"voice_id":{"type":"string","description":"Voice id (shaped like `voice_…`). Pass it unchanged as `tts_voice_id`.","isRequired":true,"uniqueKey":"data.voice_id","typeLabel":"string"},"name":{"type":"string","description":"Display name.","isRequired":true,"uniqueKey":"data.name","typeLabel":"string"},"language":{"type":"string","description":"Language sent on create; empty string when omitted.","isRequired":true,"uniqueKey":"data.language","typeLabel":"string"},"preview_audio_url":{"type":"string","description":"Public URL of the generated preview audio, playable directly in an `\u003caudio>` element. WAV (mono, 16 kHz). Present only when the preview was generated; if it is absent the voice is still usable.","uniqueKey":"data.preview_audio_url","typeLabel":"string"}},"required":["voice_id","name","language"],"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":0,"message":"success","data":{"voice_id":"voice_8f2c1a4e-5d67-4b03-a9f1-2e6c7b0d5a94","name":"Studio Anchor","language":"zh","preview_audio_url":"https://static.vivi-x.ai/voice_preview/2026/10/13/8f2c1a4e5d674b03/a9f12e6c7b0d5a94.wav"}},"examples":{"Example":{"title":"Example","value":{"code":0,"message":"success","data":{"voice_id":"voice_8f2c1a4e-5d67-4b03-a9f1-2e6c7b0d5a94","name":"Studio Anchor","language":"zh","preview_audio_url":"https://static.vivi-x.ai/voice_preview/2026/10/13/8f2c1a4e5d674b03/a9f12e6c7b0d5a94.wav"}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"5b5a4624-a5f5-41f4-8544-8a7a1d5ae22d":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Your Vivix API key. Keep it on your server.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"30837531-46cf-4bfa-86bb-c2f74bf14773":{"url":"https://api.vivix.ai"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Your Vivix API key. Keep it on your server.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Your Vivix API key. Keep it on your server.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"streaming-avatar/api-references/openapi.json"},"subdomain":"vivix-20d305ce","siteName":"Vivix API Platform","title":"Design Voice - Vivix API Platform","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/streaming-avatar/api-references/voices/design","matchLevel":0},"cn":{"href":"/cn/streaming-avatar/api-references/voices/design","matchLevel":1}}},"lastModified":"2026-11-17T14:31:18.757Z","originalFileLocation":"streaming-avatar/api-references/voices/design.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";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=\"light\"}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=\"Creates a voice from a text description, with no reference audio. Pass the returned voice_id as pipeline_config.tts_config.tts_voice_id when you start a session.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Vivix API Platform\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/vivix-20d305ce/4XVG5hka1siEhate/_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/vivix-20d305ce/4XVG5hka1siEhate/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/vivix-20d305ce/4XVG5hka1siEhate/_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/vivix-20d305ce/4XVG5hka1siEhate/_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/vivix-20d305ce/4XVG5hka1siEhate/_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/vivix-20d305ce/4XVG5hka1siEhate/_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/vivix-20d305ce/4XVG5hka1siEhate/_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/vivix-20d305ce/4XVG5hka1siEhate/_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/vivix-20d305ce/4XVG5hka1siEhate/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Design Voice - Vivix API Platform\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates a voice from a text description, with no reference audio. Pass the returned voice_id as pipeline_config.tts_config.tts_voice_id when you start a session.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Vivix API Platform\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.vivix.ai/streaming-avatar/api-references/voices/design\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://vivix-20d305ce.mintlify.site/_mintlify/api/og/v2?division=Voices\u0026amp;title=Design+Voice\u0026amp;description=Creates+a+voice+from+a+text+description%2C+with+no+reference+audio.+Pass+the+returned+%60voice_id%60+as+%60pipeline_config.tts_config.tts_voice_id%60+when+you+start+a+ses\u0026amp;theme=c0ba66fadb8405a2f081edcf\u0026amp;signature=9ba801b9a1ef3e748d2771528289ac163f200f0c6d0f9e5d8ca40a6b4b3ed956\">\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=\"Design Voice - Vivix API Platform\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates a voice from a text description, with no reference audio. Pass the returned voice_id as pipeline_config.tts_config.tts_voice_id when you start a session.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://vivix-20d305ce.mintlify.site/_mintlify/api/og/v2?division=Voices\u0026amp;title=Design+Voice\u0026amp;description=Creates+a+voice+from+a+text+description%2C+with+no+reference+audio.+Pass+the+returned+%60voice_id%60+as+%60pipeline_config.tts_config.tts_voice_id%60+when+you+start+a+ses\u0026amp;theme=c0ba66fadb8405a2f081edcf\u0026amp;signature=9ba801b9a1ef3e748d2771528289ac163f200f0c6d0f9e5d8ca40a6b4b3ed956\">\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/vivix-20d305ce/4XVG5hka1siEhate/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Vivix API Platform\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#202124\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.vivix.ai/streaming-avatar/api-references/voices/design\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/streaming-avatar/api-references/voices/design.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.vivix.ai/streaming-avatar/api-references/voices/design\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.vivix.ai/cn/streaming-avatar/api-references/voices/design\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.vivix.ai/streaming-avatar/api-references/voices/design\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.vivix.ai/#organization\",\"name\":\"Vivix API Platform\",\"url\":\"https://docs.vivix.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/vivix-20d305ce/_pH0P9NPGXmrYjpb/logo/light.svg?fit=max\u0026auto=format\u0026n=_pH0P9NPGXmrYjpb\u0026q=85\u0026s=baf0ff5242cbe15c7109578472ce97da\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.vivix.ai#website\",\"name\":\"Vivix API Platform\",\"url\":\"https://docs.vivix.ai\",\"publisher\":{\"@id\":\"https://docs.vivix.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.vivix.ai/streaming-avatar/api-references/voices/design#webpage\",\"url\":\"https://docs.vivix.ai/streaming-avatar/api-references/voices/design\",\"name\":\"Design Voice\",\"description\":\"Creates a voice from a text description, with no reference audio. Pass the returned voice_id as pipeline_config.tts_config.tts_voice_id when you start a session.\",\"dateModified\":\"2026-11-17T14:31:18.757Z\",\"isPartOf\":{\"@id\":\"https://docs.vivix.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.vivix.ai/streaming-avatar/api-references/voices/design#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.vivix.ai/streaming-avatar/api-references/voices/design#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"A1: Streaming Avatar\",\"item\":\"https://docs.vivix.ai/streaming-avatar/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API reference\",\"item\":\"https://docs.vivix.ai/streaming-avatar/api-references/sessions/create\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Voices\",\"item\":\"https://docs.vivix.ai/streaming-avatar/api-references/voices\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Design Voice\",\"item\":\"https://docs.vivix.ai/streaming-avatar/api-references/voices/design\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.vivix.ai/streaming-avatar/api-references/voices/design#apireference\",\"headline\":\"Design Voice\",\"name\":\"Design Voice\",\"description\":\"Creates a voice from a text description, with no reference audio. Pass the returned voice_id as pipeline_config.tts_config.tts_voice_id when you start a session.\",\"url\":\"https://docs.vivix.ai/streaming-avatar/api-references/voices/design\",\"mainEntityOfPage\":{\"@id\":\"https://docs.vivix.ai/streaming-avatar/api-references/voices/design#webpage\"},\"dateModified\":\"2026-11-17T14:31:18.757Z\",\"publisher\":{\"@id\":\"https://docs.vivix.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.vivix.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Vivix API Platform\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Vivix API Platform\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/streaming-avatar/api-references/voices/design.md","siteName":"Vivix API Platform","nav":{"global":null,"languages":[{"language":"en","tabs":[{"tab":"API","icon":"code","groups":[{"group":"Overview","pages":[{"title":"Introduction","href":"/overview/introduction"},{"title":"Models","href":"/overview/models"},{"title":"Changelog","mode":"wide","href":"/overview/changelog"}]},{"group":"Video Generation","pages":[{"title":"W1.2: Video Generation","sidebarTitle":"W1.2: Video Generation","href":"/video-generation/w-video-generation"},{"title":"Avatar Video Generation","sidebarTitle":"A1: Avatar Video Generation","href":"/video-generation/avatar-video-generation"}]},{"group":"A1: Streaming Avatar","pages":[{"title":"Streaming Avatar overview","sidebarTitle":"Overview","href":"/streaming-avatar/overview"},{"group":"Get started","pages":[{"title":"Avatar Playground","href":"/streaming-avatar/get-started/avatar-playground"},{"title":"Quickstart","href":"/streaming-avatar/get-started/quickstart"}]},{"group":"Define the character","pages":[{"title":"Prepare the first image","href":"/streaming-avatar/character/first-image"},{"title":"Choose a voice","href":"/streaming-avatar/character/voice"},{"title":"Write a Persona","sidebarTitle":"Persona","href":"/streaming-avatar/character/persona"},{"title":"Add tools to the character","href":"/streaming-avatar/character/tools"}]},{"group":"Interaction and performance","pages":[{"title":"Conversation and interruptions","href":"/streaming-avatar/interaction/conversation"},{"title":"Script speech and performances","href":"/streaming-avatar/interaction/scripted-performances"},{"title":"Change outfits and scenes","href":"/streaming-avatar/interaction/outfits-and-scenes"},{"title":"Object interaction","href":"/streaming-avatar/interaction/object-interaction"},{"title":"Respond quickly with short vocal cues","sidebarTitle":"Short vocal cues","href":"/streaming-avatar/interaction/acknowledgement"}]},{"group":"Integrate your app","pages":[{"title":"Create, manage, and close sessions","href":"/streaming-avatar/integrate/sessions"},{"title":"Connect with TRTC","href":"/streaming-avatar/integrate/trtc"},{"title":"Connect with Agora","href":"/streaming-avatar/integrate/agora"},{"title":"Configure speech recognition","href":"/streaming-avatar/integrate/speech-recognition"},{"title":"Configure the dialogue model","href":"/streaming-avatar/integrate/dialogue-model"},{"title":"Configure speech synthesis","href":"/streaming-avatar/integrate/speech-synthesis"},{"title":"Pure rendering mode","href":"/streaming-avatar/integrate/pure-rendering"}]},{"group":"API reference","pages":[{"group":"Sessions","root":{"title":"Sessions","href":"/streaming-avatar/api-references/sessions"},"pages":[{"title":"Create Session","openapi":"streaming-avatar/api-references/openapi.json POST /v1/realtime-avatar/sessions","href":"/streaming-avatar/api-references/sessions/create"},{"title":"Create Session from Character","openapi":"streaming-avatar/api-references/openapi.json POST /v1/realtime-avatar/character-sessions","href":"/streaming-avatar/api-references/sessions/create-from-character"},{"title":"Get Session","openapi":"streaming-avatar/api-references/openapi.json GET /v1/realtime-avatar/sessions/{session_id}","href":"/streaming-avatar/api-references/sessions/get"},{"title":"List Sessions","openapi":"streaming-avatar/api-references/openapi.json GET /v1/realtime-avatar/sessions","href":"/streaming-avatar/api-references/sessions/list"},{"title":"Close Session","openapi":"streaming-avatar/api-references/openapi.json POST /v1/realtime-avatar/sessions/{session_id}/close","href":"/streaming-avatar/api-references/sessions/close"}]},{"group":"Voices","root":{"title":"Voices","href":"/streaming-avatar/api-references/voices"},"pages":[{"title":"Upload Audio","openapi":"streaming-avatar/api-references/openapi.json POST /v1/files/audios","href":"/streaming-avatar/api-references/voices/upload-audio"},{"title":"Clone Voice","openapi":"streaming-avatar/api-references/openapi.json POST /v1/voices","description":"Clones a voice from an uploaded audio `file_id` and returns a `voice_id`. Pass that id as `pipeline_config.tts_config.tts_voice_id` when you start a session.\n\nThe reference audio must be at most 15 seconds of continuous clear speech and must contain transcribable speech. Upload it with Upload Audio first. Cloned voices count against the workspace `max_voices` quota.","href":"/streaming-avatar/api-references/voices/clone"},{"title":"Design Voice","openapi":"streaming-avatar/api-references/openapi.json POST /v1/voices/design","href":"/streaming-avatar/api-references/voices/design"},{"title":"List Voices","openapi":"streaming-avatar/api-references/openapi.json GET /v1/voices","description":"Lists voices visible to the current workspace: voices created in this workspace (cloned or designed), plus the public voices Vivix provides.","href":"/streaming-avatar/api-references/voices/list"},{"title":"Get Voice","openapi":"streaming-avatar/api-references/openapi.json GET /v1/voices/{voice_id}","href":"/streaming-avatar/api-references/voices/get"}]},{"group":"Client events","root":{"title":"Client events","href":"/streaming-avatar/api-references/client-events"},"pages":[{"title":"session.update","href":"/streaming-avatar/api-references/client-events/session-update"},{"title":"asset.add","href":"/streaming-avatar/api-references/client-events/asset-add"},{"title":"avatar.add","href":"/streaming-avatar/api-references/client-events/avatar-add"},{"title":"conversation.item.create","href":"/streaming-avatar/api-references/client-events/conversation-item-create"},{"title":"conversation.item.retrieve","href":"/streaming-avatar/api-references/client-events/conversation-item-retrieve"},{"title":"conversation.item.delete","href":"/streaming-avatar/api-references/client-events/conversation-item-delete"},{"title":"response.create","href":"/streaming-avatar/api-references/client-events/response-create"},{"title":"response.cancel","href":"/streaming-avatar/api-references/client-events/response-cancel"}]},{"group":"Server events","root":{"title":"Server events","href":"/streaming-avatar/api-references/server-events"},"pages":[{"title":"error","href":"/streaming-avatar/api-references/server-events/error"},{"title":"session.closed","href":"/streaming-avatar/api-references/server-events/session-closed"},{"title":"session.updated","href":"/streaming-avatar/api-references/server-events/session-updated"},{"title":"session.update.done","href":"/streaming-avatar/api-references/server-events/session-update-done"},{"title":"session.bootstrap.opening.done","href":"/streaming-avatar/api-references/server-events/session-bootstrap-opening-done"},{"title":"asset.added","href":"/streaming-avatar/api-references/server-events/asset-added"},{"title":"avatar.added","href":"/streaming-avatar/api-references/server-events/avatar-added"},{"title":"conversation.item.created","href":"/streaming-avatar/api-references/server-events/conversation-item-created"},{"title":"conversation.item.retrieved","href":"/streaming-avatar/api-references/server-events/conversation-item-retrieved"},{"title":"conversation.item.deleted","href":"/streaming-avatar/api-references/server-events/conversation-item-deleted"},{"title":"input_audio.speech_started","href":"/streaming-avatar/api-references/server-events/input-audio-speech-started"},{"title":"input_audio.speech_stopped","href":"/streaming-avatar/api-references/server-events/input-audio-speech-stopped"},{"title":"conversation.item.input_audio_transcription.delta","href":"/streaming-avatar/api-references/server-events/conversation-item-input-audio-transcription-delta"},{"title":"conversation.item.input_audio_transcription.completed","href":"/streaming-avatar/api-references/server-events/conversation-item-input-audio-transcription-completed"},{"title":"conversation.item.input_audio_transcription.failed","href":"/streaming-avatar/api-references/server-events/conversation-item-input-audio-transcription-failed"},{"title":"response.created","href":"/streaming-avatar/api-references/server-events/response-created"},{"title":"response.done","href":"/streaming-avatar/api-references/server-events/response-done"},{"title":"response.render.started","href":"/streaming-avatar/api-references/server-events/response-render-started"},{"title":"response.render.stopped","href":"/streaming-avatar/api-references/server-events/response-render-stopped"},{"title":"response.output_item.done","href":"/streaming-avatar/api-references/server-events/response-output-item-done"},{"title":"response.output_text.delta","href":"/streaming-avatar/api-references/server-events/response-output-text-delta"},{"title":"response.output_text.done","href":"/streaming-avatar/api-references/server-events/response-output-text-done"}]},{"group":"Characters","root":{"title":"Characters","href":"/streaming-avatar/api-references/characters"},"pages":[{"title":"Create Character","openapi":"streaming-avatar/api-references/openapi.json POST /v1/characters","href":"/streaming-avatar/api-references/characters/create"},{"title":"List Characters","openapi":"streaming-avatar/api-references/openapi.json GET /v1/characters","href":"/streaming-avatar/api-references/characters/list"},{"title":"Get Character","openapi":"streaming-avatar/api-references/openapi.json GET /v1/characters/{character_id}","href":"/streaming-avatar/api-references/characters/get"},{"title":"Update Character","openapi":"streaming-avatar/api-references/openapi.json PUT /v1/characters/{character_id}","href":"/streaming-avatar/api-references/characters/update"},{"title":"Delete Character","openapi":"streaming-avatar/api-references/openapi.json DELETE /v1/characters/{character_id}","href":"/streaming-avatar/api-references/characters/delete"}]}]}]},{"group":"W1: Streaming World","pages":[{"title":"W1: Streaming World","href":"/streaming-world/configuration"},{"title":"Streaming Control","href":"/streaming-world/control"},{"group":"API References","pages":[{"title":"Sessions","href":"/streaming-world/api-references/sessions"},{"title":"Client Messages","sidebarTitle":"Client messages","href":"/streaming-world/api-references/client-events"},{"title":"Server Events","sidebarTitle":"Server events","href":"/streaming-world/api-references/server-events"}]}]}]},{"tab":"Agent","icon":"robot","pages":[{"title":"Agent","href":"/agent/overview"}]},{"tab":"CLI","icon":"terminal","pages":[{"title":"CLI","href":"/cli/install-and-sign-in"}]}]},{"language":"cn","navbar":{"primary":{"type":"button","label":"开发者平台","href":"https://platform.vivix.ai"}},"pages":[{"title":"cn","href":"/cn/streaming-avatar/api-references/voices/design"}]}]},"basePath":"","title":"Design Voice - Vivix API Platform","deploymentId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","buildId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CyAr6xD1.js","snippetPresets-BSqedH3o.js","utils-DXfQSZU_.js","style-to-object-BY3JEAdk.js","utils-DiMyLQC-.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-DvPCxzT8.js","conditional-requirements-CFM0id0Q.js","cloneDeep-dx7iM-7h.js","_Uint8Array-DpQIK2Aw.js","isObject-FP1Yky1u.js","ApiExamples-B2sy5qvP.js","usePlaygroundInputsStore-BDc5FJKB.js","shallow-DxZq5uhD.js","isEqual-Bl_IuwU4.js","CodeSnippets-D1UoeS-I.js","CodeSnippet-C87it1Zg.js","use-playground-group-access-DyECiQ2v.js","Page-wigwbDGe.js","api-description-markdown-DHZIfeWZ.js","DynamicMarkdown-D8KwOkxZ.js","SectionHeading-uish4Ed2.js","MethodPill-DR7O5MCP.js","getPastedJson-D2WQib0m.js","Check2Icon-CUuzblYS.js","axios-CsQoIw0U.js","Markdown-K6_WYP3x.js","AssistantPageLink-BrppVW5v.js","dist-OmDnwAnM.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}