- Notifications
You must be signed in to change notification settings - Fork0
🚀AI拟声: 5秒内克隆您的声音并生成任意语音内容 Clone a voice in 5 seconds to generate arbitrary speech in real-time
License
1008610010/Realtime-Voice-Clone-Chinese
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This repository is forked fromReal-Time-Voice-Cloning which only support English.
English |中文
🌍Chinese supported mandarin and tested with multiple datasets: aidatatang_200zh, magicdata
🤩PyTorch worked for pytorch, tested in version of 1.9.0(latest in August 2021), with GPU Tesla T4 and GTX 2060
🌍Windows + Linux tested in both Windows OS and linux OS after fixing nits
🤩Easy & Awesome effect with only newly-trained synthesizer, by reusing the pretrained encoder/vocoder
Follow the original repo to test if you got all environment ready.**Python 3.7 or higher ** is needed to run the toolbox.
- InstallPyTorch.
If you get an
ERROR: Could not find a version that satisfies the requirement torch==1.9.0+cu102 (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2 )
This error is probably due to a low version of python, try using 3.9 and it will install successfully
- Installffmpeg.
- Run
pip install -r requirements.txt
to install the remaining necessary packages.
Note that we are using the pretrained encoder/vocoder but synthesizer, since the original model is incompatible with the Chinese sympols. It means the demo_cli is not working at this moment.
Download aidatatang_200zh or SLR68 dataset and unzip: make sure you can access all .wav intrain folder
Preprocess with the audios and the mel spectrograms:
python synthesizer_preprocess_audio.py <datasets_root>
Allow parameter--dataset {dataset}
to support adatatang_200zh, magicdataPreprocess the embeddings:
python synthesizer_preprocess_embeds.py <datasets_root>/SV2TTS/synthesizer
Train the synthesizer:
python synthesizer_train.py mandarin <datasets_root>/SV2TTS/synthesizer
Go to next step when you see attention line show and loss meet your need in training foldersynthesizer/saved_models/.
FYI, my attention came after 18k steps and loss became lower than 0.4 after 50k steps.
Thanks to the community, some models will be shared:
author | Download link | Previow Video |
---|---|---|
@miven | https://pan.baidu.com/s/1PI-hM3sn5wbeChRryX-RCQ code:2021 | https://www.bilibili.com/video/BV1uh411B7AD/ |
A link to my early trained model:Baidu YunCode:aid4
You can then try the toolbox:
python demo_toolbox.py -d <datasets_root>
orpython demo_toolbox.py
Good news🤩: Chinese Characters are supported
- Add demo video
- Add support for more dataset
- Upload pretrained model
- Support parallel tacotron
- Service orianted and docterize
- 🙏 Welcome to add more
About
🚀AI拟声: 5秒内克隆您的声音并生成任意语音内容 Clone a voice in 5 seconds to generate arbitrary speech in real-time
Resources
License
Code of conduct
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Languages
- Python100.0%