Audio modelsAPI referenceDesign a voice from a description

Design a voice from a description

Generate a new voice from a voice description and preview text, without uploading recordings. Credits are reserved at the per-generation rate and refunded automatically if no result is produced.

Authentication

API Key: X-API-Key: <API Key> or Authorization: Bearer <API Key>.

Credentials in the examples are placeholders. Replace them and run the examples on your server.

Code examples

curl -X POST 'https://shixux.com/api/v1/voice-designs' \  -H 'X-API-Key: yb_xxx_yyy' \  -H 'Content-Type: application/json' \  -H 'Idempotency-Key: your-unique-business-action-id' \  -d '{"name":"沉稳旁白","description":"低沉温暖的中年男性声音,语速自然,普通话清晰。","preview_text":"你好,今天的故事就从这里开始,让我们一起走进远方的山谷。","language":"zh","quote_version":1}'
{  "id": "job_xxx",  "type": "tts",  "status": "queued",  "reserved_credits": 1,  "estimate_detail": {}}

Header Parameters

Idempotency-Key?|

Idempotency key of up to 128 characters. Reuse the same value when retrying the same request; using it for a different request returns 409.

Request Body

application/json
  1. body
name*string

Name of the candidate voice, 1–80 characters.

Length1 <= length <= 80
description*string

Description of the voice, 1–500 characters.

Length1 <= length <= 500
preview_text*string

Text read aloud to preview the candidate voice, 15–200 characters.

Length15 <= length <= 200
language*string

Language. Speech synthesis and audio composition use it only with model indextts-2.5, where it is required and must be ZH, EN or JA. Voice design uses the language codes its configuration allows.

Value in"zh""en""ja""ko"
quote_version?integer

Billing version from billing.version in GET /v1/voice-design/config. A mismatch returns 409 before any credits are reserved.

Formatint64

Response Body

Request succeeded

application/json
  1. response
estimate_detail*
id*Id
reserved_credits*Reserved Credits
status*JobStatus
Value in"queued""processing""succeeded""failed""cancelled"
type*JobType
Value in"tts""avatar""video""video_analysis""image""voice_design""audio_composition"

On this page