Use the Voice Design HTTP API to create, list, query, and delete custom voices.
Endpoint
International
If you select the International deployment scope, model inference compute resources are dynamically scheduled worldwide, excluding the Chinese mainland. Static data is stored in your selected region. Supported region: Singapore.
POST https://dashscope-intl.aliyuncs.com/api/v1/services/audio/tts/customization
Chinese mainland
If you select the Chinese mainland deployment scope, model inference compute resources are restricted to the Chinese mainland. Static data is stored in your selected region. Supported region: China (Beijing).
POST https://dashscope.aliyuncs.com/api/v1/services/audio/tts/customization
Request headers
Parameter | Type | Required | Description |
Authorization | string | Yes | Authorization token in the format |
Content-Type | string | Yes | Media type of the request body. Set to |
Create a voice
Request body | The following example uses the Singapore region URL. To use a model deployed in the Beijing region, replace the URL with: CosyVoice voice designQwen voice design |
model The voice design model. Valid values:
| |
input The input parameter object. | |
parameters Configuration for voice design. |
Response body | CosyVoice voice designQwen voice designImportant CosyVoice returns the |
request_id The unique identifier of this request. | |
output The data returned by the model. | |
usage Usage information for this request. |
List voices
Request body | The following example uses the Singapore region URL. To use a model deployed in the Beijing region, replace the URL with: CosyVoiceQwen voice design |
model The voice design model. Valid values:
| |
input The input parameter object. |
Response body | CosyVoiceQwenImportant CosyVoice returns a |
request_id The unique identifier of this request. | |
output The data returned by the model. | |
usage Usage information for this request. |
Query voice details
Request body | The following example uses the Singapore region URL. To use a model deployed in the Beijing region, replace the URL with: CosyVoiceQwen voice design |
model The voice design model. Valid values:
| |
input The input parameter object. |
Response body | CosyVoice voice designQwen voice designImportant CosyVoice returns |
request_id The unique identifier of this request. | |
output The data returned by the model. | |
usage Usage information for this request. |
Delete a voice
Request body | The following example uses the Singapore region URL. To use a model deployed in the Beijing region, replace the URL with: CosyVoiceQwen voice design |
model The voice design model. Valid values:
| |
input The input parameter object. |
Response body | CosyVoiceQwenImportant CosyVoice returns an empty output object, while Qwen returns the |
request_id The unique identifier of this request. | |
output The data returned by the model. CosyVoice returns an empty object. Qwen returns the name of the deleted voice. | |
usage Usage information for this request. |
Voice status reference
After a voice is created, it goes through a review process. The following table describes each status. This status system applies only to CosyVoice (when model is voice-enrollment). Qwen query and list responses don't include a status field.
Status | Description |
DEPLOYING | Under review or processing. |
OK | Review passed. The voice is ready for use. |
UNDEPLOYED | Review rejected. The voice can't be used. |