The Do TTS Pro API provides access to our professional-grade voice library, offering enhanced vocal dynamics and superior clarity. By selecting a voiceId from the "Pro" category, you can generate high-fidelity speech from any provided text.
voiceId from the Pro Voice List to use as the audioId.taskId.audioUrl.Enum: application/json
Bearer authentication token. Example: Bearer {{APIKey}}.
The unique identifier of the chosen Pro voice. Visit the Voice List, navigate to the "Pro" version section, and copy the desired voiceId.
The text string to be converted into high-fidelity speech.
The target language code for the voice output (e.g., en, zh-CN, es).
Returns 0 for success, or a specific error code.
Returns "success" or a descriptive error message.
The unique identifier for the task. Use this ID with the Polling API to retrieve the generated output.
Use the Polling API to retrieve the processing results.
Alternatively, you can enable Callback to receive task results automatically upon completion.
{
"code": 0,
"message": "success",
"data": {
"task": {
"taskId": "496d20fd83f49bbe985d32da4d099e51",
"status": 3,
"executionTime": 17232,
"expire": 1769586737611,
"taskType": "tts_pro"
},
"audios": [
{
"audioUrl": "https://dreamface-resource-aigc.oss-us-east-1.aliyuncs.com/apiDocsAdmin/2025-4-1744804212969-dottsClone_result.wav",
"audioType": ".wav"
}
]
}
}curl -X POST 'https://api.newportai.com/api/async/do_tts_pro' \
-H "Authorization: Bearer {{key}}" \
-H 'Content-Type: application/json' \
-d '{
"audioId": "b90847cb8cfe4446881c6a3e15118084",
"text": "let us see this world",
"lan": "en"
}'{
"code": 0,
"message": "success",
"data": {
"taskId": "496d20fd83f49bbe985d32da4d099e51"
}
}