152334H / tortoise-tts-fast

Fast TorToiSe inference (5x or your money back!)
GNU Affero General Public License v3.0
759 stars 177 forks source link

I am able to use cli as below, how to use in python code to prevent reloading of model and synthesis speech of each line from a given text file? #82

Open FurkanGozukara opened 1 year ago

FurkanGozukara commented 1 year ago

Hello.

Currently this code is working

python tortoise_tts.py --preset ultra_fast --ar_checkpoint "F:\DL-Art-School\experiments\test1\models\152_gpt.pth" -o "152.wav" "Greetings everyone."

Now I have 2 questions

1st : which parameters i can change to improve quality? just make preset fast?

2nd : can you give me a small python code that will iteratively read a text file and synthesis each line in it with order and save with order without reloading the model with most efficiency?

thank you so much

i can direct this python script into correct venv myself it is easy