Spaces:
Build error
ElevenLabs Voice Cloning Guide
This README serves as a guide on how to use ElevenLabs for voice cloning. Follow the steps below to clone a voice, test it, and fine-tune it for the best results.
Collecting Data
Before you start, you'll need voice data. Download high quality vocal only audio clips. Check the training_data folder for reference.
If you're creating your own dataset, ensure the audio is high quality. It should have no background noise, clear pronunciation.
The audio format must be mp3 and should be about 1 minute long in total.
Creating an ElevenLabs Account
Visit ElevenLabs to create an account. You'll need this to access the speech synthesis and voice cloning features.
Get your ELEVEN_LABS_API_KEY
:
- Click profile icon and select 'profile'.
- Copy API Key
Speech Synthesis/Voice Cloning
Follow these steps to clone a voice:
- Go to the speech synthesis page.
- Click "Add Voice".
- Click "Add Generative or Cloned Voice".
- Click "Instant Voice Cloning".
- Fill in all the required information and upload your audio samples.
- Click "Add Voice".
Testing Your Voice
To test the voice you've just created:
- Go back to the speech synthesis page.
- Choose the voice you just created in Settings.
- Type some text and click "Generate".
Fine-tuning Your Voice
You can make the voice read better by adjusting system and user prompts. Here are some tips:
- If the voice is too monotone, lower the Stability to make it more emotional. However, setting the Stability to zero can sometimes lead to a strange accent.
- Longer sentences tend to be spoken better because they provide more context for the AI speaker to understand.
- For shorter sentences that are spoken too quickly, replace "." with "...". Add "-" or a newline for a pause.
- Add emotion-related words or phrases, or use punctuation marks like β!β, β?β to add emotions to the voice.
Using Your Custom Voice in Our Project
You need the voice id of cloned voice. Here's how:
- go to https://api.elevenlabs.io/docs
- choose Get Voices api
- follow the instruction and find the specific voice_id in the Responses.
- Do not forget to update your .env file with
ELEVEN_LABS_API_KEY
and voice ids.