by eigenvalue · 3y ago · 0 comments
Not sure it's quite up to Eleven Labs quality. But to me, what makes Eleven so cool is that they have a large library of high quality voices that are easy to choose from. I don't yet see any way with this library to get a different voice from the default female voice.
Also, the real special sauce for Eleven is the near instant voice cloning with just a single 5 minute sample, which works shockingly (even spookily) well. Can't wait to have that all available in a fully open source project! The services that provide this as an API are just too expensive for many use cases. Even the OpenAI one which is on the cheaper side costs ~10 cents for a couple thousand word generation.
git clone https://github.com/yl4579/StyleTTS2.git
cd StyleTTS2
python3 -m venv venv
source venv/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install wheel
pip install -r requirements.txt
pip install phonemizer
sudo apt-get install -y espeak-ng
pip install gdown
gdown https://drive.google.com/uc?id=1K3jt1JEbtohBLUA0X75KLw36TW7U1yxq
7z x Models.zip
rm Models.zip
gdown https://drive.google.com/uc?id=1jK_VV3TnGM9dkrIMsdQ_upov8FrIymr7
7z x Models.zip
rm Models.zip
pip install ipykernel pickleshare nltk SoundFile
python -c "import nltk; nltk.download('punkt')"
pip install --upgrade jupyter ipywidgets librosa
python -m ipykernel install --user --name=venv --display-name="Python (venv)"
jupyter notebook
Then navigate to /Demo and open either `Inference_LJSpeech.ipynb` or `Inference_LibriTTS.ipynb` and they should work.xTTSv2 does it much better. But the quality on the trained voices are great though.
Also, ElevenLabs keeps diverging for me, and starts mispronouncing words after two or three sentences.