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
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": {}}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.
application/json- body
name*stringName of the candidate voice, 1–80 characters.
1 <= length <= 80description*stringDescription of the voice, 1–500 characters.
1 <= length <= 500preview_text*stringText read aloud to preview the candidate voice, 15–200 characters.
15 <= length <= 200language*stringLanguage. 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.
"zh""en""ja""ko"quote_version?integerBilling version from billing.version in GET /v1/voice-design/config. A mismatch returns 409 before any credits are reserved.
int64Request succeeded
application/json- response
estimate_detail*id*Idreserved_credits*Reserved Creditsstatus*JobStatus"queued""processing""succeeded""failed""cancelled"type*JobType"tts""avatar""video""video_analysis""image""voice_design""audio_composition"