Real-Time Voice Cloning
This repository is an implementation of Transfer Learning from Speaker Verification to Multispeaker Text-To-Speech Synthesis (SV2TTS) with a vocoder that works in real-time. Feel free to check my thesis if you're curious or if you're looking for info I haven't documented. Mostly I would recommend giving a quick look to the figures beyond the introduction.
SV2TTS is a three-stage deep learning framework that allows to create a numerical representation of a voice from a few seconds of audio, and to use it to condition a text-to-speech model trained to generalize to new voices.
Video demonstration (click the picture):
1. Install Requirements
Python 3.6 or 3.7 is needed to run the toolbox.
- Install PyTorch (>=1.0.1).
- Install ffmpeg.
pip install -r requirements.txtto install the remaining necessary packages.
2. Download Pretrained Models
Download the latest here.
3. (Optional) Test Configuration
Before you download any dataset, you can begin by testing your configuration with:
If all tests pass, you're good to go.
4. (Optional) Download Datasets
For playing with the toolbox alone, I only recommend downloading
LibriSpeech/train-clean-100. Extract the contents as
<datasets_root> is a directory of your choosing. Other datasets are supported in the toolbox, see here. You're free not to download any dataset, but then you will need your own data as audio files or you will have to record it with the toolbox.
5. Launch the Toolbox
You can then try the toolbox:
python demo_toolbox.py -d <datasets_root>
depending on whether you downloaded any datasets. If you are running an X-server or if you have the error
Aborted (core dumped), see this issue.