robinhad / ukrainian-tts

Ukrainian TTS (text-to-speech) using ESPNET
https://huggingface.co/spaces/robinhad/ukrainian-tts
MIT License
195 stars 17 forks source link

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

Closed Santabot123 closed 3 months ago

Santabot123 commented 7 months ago

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

!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

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

robinhad commented 3 months ago

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