Voice Design

Generate a personalized custom voice based on a sound description prompt, and generate audition audio for the designed voice based on the preview text.
POST/v1/audio/voices/design

Authorization

AuthorizationstringheaderRequired
HTTP: Bearer Auth

Request Header

Content-Typeenum<string>Default: application/jsonRequired

Request Bodyapplication/json

promptstringRequired

Voice description.

preview_textstringRequired

Preview text, 15-100 Chinese characters or words.

voice_idstring

Custom voice ID. When omitted, the server auto-generates a unique ID in the format:
ttv-voice-{yyyyMMddHHmmss}-{8 random characters}
A custom ID must meet the following rules:
  • 8-64 characters long, and must start with an English letter;
  • May only contain letters, numbers, hyphens (-), and underscores (_); the last character cannot be a hyphen or underscore;
  • Must not conflict with existing cloned/designed voices.

Response Body Structure

voice_idstring

Generated voice ID, which can be used for speech synthesis.

trial_audiostring

Audition audio URL.

base_respobject

Status code and details of this request

base_resp.status_codeinteger

Status code (0=normal; 100001=parameter error; 100003=duplicate voice_id; 100004=sensitive content; 100101=authentication failed; 100501=triggered RPM rate limit; 100999=internal system error)

base_resp.status_msgstring

Status details