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.
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
https://dashscope.aliyuncs.comtohttps://{WorkspaceId}.cn-beijing.maas.aliyuncs.com -
Singapore: from
https://dashscope-intl.aliyuncs.comtohttps://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com
{WorkspaceId} is your workspace ID, which can be found on the Workspace Details page in the Model Studio console. The existing domain remains fully functional.
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 |
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: CosyVoice voice design
Qwen voice design
|
|
model The voice design model. Valid values:
|
|
|
input The input parameter object. |
|
|
parameters Configuration for voice design. |
Response body |
CosyVoice voice design
Qwen voice design
Important
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 |
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: CosyVoice
Qwen voice design
|
|
model The voice design model. Valid values:
|
|
|
input The input parameter object. |
Response body |
CosyVoice
Qwen
Important
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 |
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: CosyVoice
Qwen voice design
|
|
model The voice design model. Valid values:
|
|
|
input The input parameter object. |
Response body |
CosyVoice voice design
Qwen voice design
Important
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 |
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: CosyVoice
Qwen voice design
|
|
model The voice design model. Valid values:
|
|
|
input The input parameter object. |
Response body |
CosyVoice
Qwen
Important
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. |