Clone a voice from an audio recording. Send audio as a base64-encoded string. The cloned voice will be available in GET /voices.
Parameters
audio: str
Base64-encoded audio data (max ~7.5MB decoded)
maxLength10000000
name: str
Name for the cloned voice
minLength1
Returns
Clone a voice
import os
from revox import Revox
client = Revox(
api_key=os.environ.get("REVOX_API_KEY"), # This is the default and can be omitted
)
response = client.voices.clone(
audio="audio",
content_type="audio/webm",
language="en",
name="x",
)
print(response.id){
"id": "id",
"cartesiaVoiceId": "cartesiaVoiceId",
"createdAt": "createdAt",
"language": "language",
"name": "name"
}Returns Examples
{
"id": "id",
"cartesiaVoiceId": "cartesiaVoiceId",
"createdAt": "createdAt",
"language": "language",
"name": "name"
}