Hifigan, is a neural model converting melspectograms to voice REF. Hifigan, learns how to add phase information to melspectograms data.
These phase information are mostly not related to the spoken language. So also every one use the original models trained on multivoice english dataset VCTK.
So when do you need to train hifigan? When you need to use a frequency other than the original model using 22050Hz.
Attention: To train this model you need at least a 3090 grahic card operating for TWO WEEKS!!!
Create dataset using matcha:
source matcha-tts-env/bin/activate
cd /home/oem/Basir/TTS/HiFi-GAN/MelDataset/mels/
remove first column from metadata.csv and save as metadata_raw.txt
matcha-tts --file /home/oem/Basir/TTS/Datasets/Phone-Online/Female/metadata_raw.txt --checkpoint_path /home/oem/Basir/TTS/Matcha/Trained/inital_checkpoints/phone-24000-motahare.ckpt --vocoder hifigan_univ_v1 --denoiser_strength 0.000001
run rename_utterance_files_to_meta_data_1st_column_name.py
rm -rf ./*.png
YOU MIGHT GET ERROR IN THE MIDDLE AND NEED TO DO PART OF IT AGAIN
or replace the model with name hifigan_T2_v1:
/home/oem/.local/share/matcha_tts/
and :
matcha-tts --file /home/oem/Basir/TTS/HiFi-GAN/MelDataset/metadata_raw.txt --checkpoint_path /home/oem/Basir/TTS/Matcha/Trained/inital_checkpoints/phone-24000-motahare.ckpt --vocoder /home/oem/Basir/TTS/HiFi-GAN/Trained/g_00050000_24KHz_v1_phonedataset_motahare --denoiser_strength 0.00025000 --sample_rate 24000
Convert to onnx
pip install onnx onnxruntime
NOT WORKS
export PYTHONPATH=$PYTHONPATH:/home/oem/Basir/TTS/HiFi-GAN/hifi-gan