Skip to main content

Overview

Instant Voice Cloning (IVC) allows you to create a custom voice clone from audio samples. This feature requires an API key and enables you to generate voices that match the characteristics of your provided samples.

Basic Voice Cloning

Create a voice clone with multiple audio samples:

Parameters

string
required
The name that identifies this voice. This will be displayed in the dropdown of the website.
List[File]
required
List of audio file paths to use for voice cloning. Multiple samples improve quality.
string
A description of the voice to help identify it later.
boolean
If set, will remove background noise from voice samples using the audio isolation model. If the samples do not include background noise, it can make the quality worse.
dict
Labels for the voice. Keys can be language, accent, gender, or age.

With Background Noise Removal

Use the audio isolation model to clean up samples:

With Voice Labels

Add metadata labels to organize your voices:

Using the Cloned Voice

Once created, use the voice ID for text-to-speech:

Async Voice Cloning

For async operations:

Best Practices

For best results:
  • Provide 3-5 high-quality audio samples
  • Each sample should be 30 seconds to 2 minutes long
  • Use clear audio with minimal background noise
  • Samples should contain varied speech patterns
  • Ensure consistent audio quality across samples
Only use audio from speakers who have given explicit consent for voice cloning.

Response Object

The create method returns an AddVoiceIvcResponseModel with:
  • voice_id - The unique identifier for the cloned voice
  • Other voice metadata

Error Handling