Voice Design API reference
Use the Voice Design HTTP API to create, list, query, and delete custom voices.
User guide: Voice Design.
Endpoint
China (Beijing)
POST https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/api/v1/services/audio/tts/customization
Replace {WorkspaceId} with your actual workspace ID.
Singapore
POST https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/api/v1/services/audio/tts/customization
Replace {WorkspaceId} with your actual workspace ID.
ImportantAlibaba Cloud Model Studio has released workspace-specific domains for the China (Beijing) and Singapore regions. The new dedicated domains deliver superior performance and higher stability for inference requests. We recommend migrating to the new domains:
- China (Beijing): from
dashscope.aliyuncs.comto{WorkspaceId}.cn-beijing.maas.aliyuncs.com - Singapore: from
dashscope-intl.aliyuncs.comto{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com
Replace {WorkspaceId} with your actual Workspace ID. The existing domains remain fully functional.
Request headers
Parameter | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Set to |
Content-Type | string | Yes | Media type of the request body. Set to |
Create a voice
Request bodymodel The voice design model. Valid values:
input The input parameter object. parameters Configuration for voice design. | Qwen-Audio-TTS/CosyVoice Voice Design is available only in the Beijing region. Qwen Voice Design supports both the Beijing and Singapore regions. The following examples use the Beijing region URL. To use Qwen Voice Design in the Singapore region, replace the URL with: Replace |
Response bodyrequest_id The unique identifier of this request. output The data returned by the model. usage Usage information for this request. | ImportantQwen-Audio-TTS/CosyVoice returns the |
List voices
Request bodymodel The voice design model. Valid values:
input The input parameter object. | Qwen-Audio-TTS/CosyVoice Voice Design is available only in the Beijing region. Qwen Voice Design supports both the Beijing and Singapore regions. The following examples use the Beijing region URL. To use Qwen Voice Design in the Singapore region, replace the URL with: |
Response bodyrequest_id The unique identifier of this request. output The data returned by the model. usage Usage information for this request. | ImportantQwen-Audio-TTS/CosyVoice returns a |
Query voice details
Request bodymodel The voice design model. Valid values:
input The input parameter object. | Qwen-Audio-TTS/CosyVoice Voice Design is available only in the Beijing region. Qwen Voice Design supports both the Beijing and Singapore regions. The following examples use the Beijing region URL. To use Qwen Voice Design in the Singapore region, replace the URL with: |
Response bodyrequest_id The unique identifier of this request. output The data returned by the model. usage Usage information for this request. | ImportantQwen-Audio-TTS/CosyVoice returns |
Delete a voice
Request bodymodel The voice design model. Valid values:
input The input parameter object. | Qwen-Audio-TTS/CosyVoice Voice Design is available only in the Beijing region. Qwen Voice Design supports both the Beijing and Singapore regions. The following examples use the Beijing region URL. To use Qwen Voice Design in the Singapore region, replace the URL with: |
Response bodyrequest_id The unique identifier of this request. output The data returned by the model. Qwen-Audio-TTS/CosyVoice returns an empty object. Qwen returns the name of the deleted voice. usage Usage information for this request. | ImportantQwen-Audio-TTS/CosyVoice returns an empty output object, while Qwen returns the |
Voice status reference
Created voices go through a review process. These statuses apply to Qwen-Audio-TTS/CosyVoice only (model voice-enrollment). Qwen responses do not 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. |