robinhad / ukrainian-tts

Ukrainian TTS (text-to-speech) using ESPNET

Home Page:https://huggingface.co/spaces/robinhad/ukrainian-tts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error with file: speakers.pth

akirsoft opened this issue · 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