The Voice Clone API allows developers to replicate the unique vocal characteristics of a target speaker. Once a voice is cloned, it can be used in conjunction with the Do TTS Clone API to generate natural-sounding speech from any provided text.
taskId.Enum: application/json
Bearer authentication token. Example: Bearer {{APIKey}}.
The URL of the source audio file containing the voice to be cloned. The file must be publicly accessible.
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": "9b9a22dd3e8f461e8049eff9f6de5b20",
"status": 3,
"executionTime": 3697,
"expire": 1740648465317,
"taskType": "voice_clone"
},
"cloneId": "fe82a0faf1444f93bd7f49a4ba745b63"
}
}curl -X POST 'https://api.newportai.com/api/async/voice_clone' \
-H "Authorization: Bearer {{key}}" \
-H 'Content-Type: application/json' \
-d '{
"voiceUrl": "https://d2t5pyzt5qvy2d.cloudfront.net/api/static_resource/prod/default/AoOVLxqINsl1dTAAhnmAW.wav"
}'{
"code": 0,
"message": "success",
"data": {
"taskId": "9b9a22dd3e8f461e8049eff9f6de5b20"
}
}