NokiMo
Furkan Gözükara
Furkan Gözükara

patreon


Voice Clone Tutorial Scripts

Tutorial published : https://youtu.be/OiMRlqcgDL0

GitHub file link that has many instructions (the one used in the video) : https://github.com/FurkanGozukara/Stable-Diffusion/blob/main/Tutorials/Deep-Voice-Clone-Tutorial-Tortoise-TTS.md

pre_process_given_text_file. py will be used by process_given_speech_text.bat automatically to preprocess and fix prepare your speech text file.

process_given_speech_text.bat will automate your process. just drag and drop your speech txt file into it.

epoch_comparison.bat will automate your process and will generate speech files from given text file by using all of the checkpoint files you put in the given folder. it also works with drag and drop the text file

put both files into the same folder. Don't forget to modify necessary variables as explained in the GitHub repo and in the tutorial video

setting up the necessary variables are mandatory in the given files so check out video or GitHub page


fixDuration.py this is a new file. With this file you can remove bigger than any length  sounds. For example it will remove above 12 seconds right now. Run this script inside the training set folder which have wavs folder, train.txt and valid.txt files.  Moreover in ozen toolkit, you can change config.ini file and set seg_min_duration = 5.0 for removing smaller than 5 second speech files automatically. But this will also make you lose a lot of speech parts. You can change valid_ratio , seg_onset , and seg_offset  values in ozen toolkit config.ini to see what kind of effects they are making when pre processing given speech audio file. 

Comments

yes there is a way to resume. in the gui you give a path of pth. you can give your last checkpoint. by the way coqui is much faster and better. for 150$ private session, i can share my prepared scripts and show you how to voice clone training. i will hopefully make a tutorial but not ready yet.

Furkan Gözükara

Ok- so my computer stopped after about 6 weeks of training because of a power outage. It got to 11400_gt.pth and 11400.state - is there a way to restart it or go with what I already have?

Jessica

I think it doesn't affect a lot. I also had same problem when training

Furkan Gözükara

Nevermind - I did your steps in order without trying to start DLAS and it is working so far :D Is this user warning fatal though? 38: UserWarning: Detected call of `lr_scheduler.step()` before `optimizer.step()`. In PyTorch 1.1.0 and later, you should call them in the opposite order: `optimizer.step()` before `lr_scheduler.step()`. Failure to do this will result in PyTorch skipping the first value of the learning rate schedule. See more details at https://pytorch.org/docs/stable/optim.html#how-to-adjust-learning-rate warnings.warn("Detected call of `lr_scheduler.step()` before `optimizer.step()`. "

Jessica

I see. yes i have modified it. now when you run process_given_speech_text.bat it will read lines and merge them with ; . so now pre_process_given_text_file.py split speech text into lines

Furkan Gözükara

I was only trying to run pre_process_given_text_file.py standalone to check the result but there are no separators in the file.

Now the other file is merging lines with ; when generating speech. this change was made to support special characters like ! I spent quite a bit time to make it work. Can you try and let me know. Thank you for patron support

Furkan Gözükara

Thanks for the excellent training video. When I run the pre_process_given_text_file.py the result does not put ";" in the output file. Not sure what I am missing. Any suggestions?


Related Creators