robinhad/ukrainian-tts

Error with file: speakers.pth

akirsoft opened this issue · 4 comments

FileNotFoundError: [Errno 2] No such file or directory: '/home/user/Soft/Python/mamba1/TTS/vits_mykyta_latest-September-12-2022_12+38AM-829e2c24/speakers.pth'

can you provide code snippet to reproduce?

from ukrainian_tts.tts import TTS, Voices

tts = TTS()
with open("test.wav", mode="wb") as file:
_, text = tts.tts("Привіт, Пол+іна! Сподіваюся, голова вже не болить?" , Voices.Mykyta.value, "dictionary", file)
print("Accented text:", text)

I rewrited file json and added my path '/home/user/Soft/Python/mamba1/TTS, but vits_mykyta_latest-September-12-2022_12+38AM-829e2c24/speakers.pth in config.json

Should be solved now, please reopen if not