myshell-ai / MeloTTS

High-quality multi-lingual text-to-speech library by MyShell.ai. Support English, Spanish, French, Chinese, Japanese and Korean.
MIT License
3.97k stars 473 forks source link

ModuleNotFoundError: No module named 'melo.text' #141

Open Mixomo opened 1 month ago

Mixomo commented 1 month ago

Hello, I'm trying to train a custom model with a Spanish dataset; however, when I ran the training command (!python preprocess_text.py --metadata /content/metadata.list), I received the next error:

Traceback (most recent call last): File "/content/MeloTTS/melo/preprocess_text.py", line 8, in from text.cleaner import clean_text_bert File "/content/MeloTTS/melo/text/cleaner.py", line 1, in from . import chinese, japanese, english, chinese_mix, korean, french, spanish File "/content/MeloTTS/melo/text/korean.py", line 12, in from melo.text.ko_dictionary import english_dictionary, etc_dictionary ModuleNotFoundError: No module named 'melo.text'

can you help me, pelase? :( Thanks!

PS: any Melo Spanish checkpoint must be downloaded? Why is the correct path?

RedBluePrinter commented 2 weeks ago

Try changing the 'melo.text' in the Source code file to 'text'. Or install the folder to your python libraries(build). for me "melo.*" did not work until it was linked to my python.