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

TypeError: TTS.__init__() got an unexpected keyword argument 'cache_dir'

Santabot123 opened this issue · comments

Я запустив оцей код в гугл колабі:

!pip install git+https://github.com/robinhad/ukrainian-tts.git


from ukrainian_tts.tts import TTS, Voices, Stress
import IPython.display as ipd

tts = TTS(device="cpu", cache_dir="model") # can try gpu, mps
with open("test.wav", mode="wb") as file:
    _, output_text = tts.tts("Привіт, як у тебе справи?", Voices.Dmytro.value, Stress.Dictionary.value, file)
print("Accented text:", output_text)

ipd.Audio(filename="test.wav")

І отримав поилку :
image

Що я роблю не так?

правильний параметр cache_folder замість cache_dir