Clone a voice
voices.clone_(**kwargs) -> VoiceCloneResponse { id, cartesia_voice_id, created_at, 2 more }
POST/voices/clone
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: String
Base64-encoded audio data (max ~7.5MB decoded)
maxLength10000000
name: String
Name for the cloned voice
minLength1
Returns
Clone a voice
require "revox"
revox = Revox::Client.new(api_key: "My API Key")
response = revox.voices.clone_(audio: "audio", content_type: :"audio/webm", language: :en, name: "x")
puts(response){
"id": "id",
"cartesiaVoiceId": "cartesiaVoiceId",
"createdAt": "createdAt",
"language": "language",
"name": "name"
}Returns Examples
{
"id": "id",
"cartesiaVoiceId": "cartesiaVoiceId",
"createdAt": "createdAt",
"language": "language",
"name": "name"
}