This repo is a pipeline of VITS finetuning for fast speaker adaptation TTS, and many-to-many voice conversion
This repo is a pipeline of VITS finetuning for fast speaker adaptation TTS, and many-to-many voice conversion
This repo will guide you to add your own character voices, or even your own voice, into existing VITS TTS model to make it able to do the following tasks in less than 1 hour:
Welcome to play around with the base models!
Chinese & English & Japanese: Author: Me
Chinese & Japanese: Author: SayaSS
Chinese only:(No running huggingface spaces) Author: Wwwwhy230825
See LOCAL.md for local training guide.
Alternatively, you can perform fine-tuning on Google Colab
inference, which are named G_latest.pth and finetune_speaker.json, respectively.inference
├───inference.exe
├───...
├───finetune_speaker.json
└───G_latest.pth
inference.exe, the browser should pop up automatically.ffmpeg to enable voice conversion feature.In this example, we will show how to run inference with the default pretrained model. We are now in the main repository directory.
cd monotonic_align/
mkdir monotonic_align
python setup.py build_ext --inplace
cd ..
mkdir pretrained_models
# download data for fine-tuning
wget https://huggingface.co/datasets/Plachta/sampled_audio4ft/resolve/main/sampled_audio4ft_v2.zip
unzip sampled_audio4ft_v2.zip
For your finetuned model you may need to create additional directories:
mkdir video_data
mkdir raw_audio
mkdir denoised_audio
mkdir custom_character_voice
mkdir segmented_character_voice
wget https://huggingface.co/spaces/Plachta/VITS-Umamusume-voice-synthesizer/resolve/main/pretrained_models/D_trilingual.pth -O ./pretrained_models/D_0.pth
wget https://huggingface.co/spaces/Plachta/VITS-Umamusume-voice-synthesizer/resolve/main/pretrained_models/G_trilingual.pth -O ./pretrained_models/G_0.pth
wget https://huggingface.co/spaces/Plachta/VITS-Umamusume-voice-synthesizer/resolve/main/configs/uma_trilingual.json -O ./configs/finetune_speaker.json
python3 cmd_inference.py -m pretrained_models/G_0.pth -c configs/finetune_speaker.json -t 你好,训练员先生,很高兴见到你。 -s "派蒙 Paimon (Genshin Impact)" -l "简体中文"
You can choose another language, customize output folder, change text and character, but all these parameters you can see in the file cmd_inference.py.
Below I'll show only how to change the character.configs/finetune_speaker.json). There you can find dictionary speakers, where you'll be able to see full list of speakers. Just copy the name of the character you need use it instead of "派蒙 Paimon (Genshin Impact)".wav file in the output/vitsG_latest.pth and moegoe_config.json, respectively.If you have any questions, please feel free to open an issue or join our Discord server.
No open issues yet, or sync has not completed.