Clone Voice
Clone a voice from an audio file to create a custom voice with a unique voice embedding.
POST
Headers
x-api-keystringrequiredAPI key used for authenticating requests to the API.
x-workspace-idstringrequiredWorkspace identifier for the API.
Request Body
The request body should be sent as multipart/form-data.
filefilerequiredAudio file to clone the voice from. Maximum file size: 50MB.
namestringName for the cloned voice.
descriptionstringDescription of the cloned voice.
languagestringLanguage code for the voice (e.g., "en").
Response Fields
embeddingobjectThe voice embedding data generated from the audio file.
voiceobjectThe created custom voice object (if name was provided).
_idstringUnique identifier for the custom voice.
namestringName of the custom voice.
{
"embedding": {
"data": "...",
"format": "float32"
},
"voice": {
"_id": "665a1b2c3d4e5f6a7b8c9d0e",
"name": "My Custom Voice",
"description": "Cloned from recording",
"language": "en",
"workspaceId": "664a1b2c3d4e5f6a7b8c9d0e"
}
}