myshell-ai / MeloTTS

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

Module import takes too long #144

Open nvliajia opened 5 months ago

nvliajia commented 5 months ago

I only run from melo.api import TTS,It takes me over 70 seconds each time

s-tweed commented 5 months ago

I believe that is due to Torch importing. I don't know of any way around that personally. It always takes forever to import on my station.

pengpengtao commented 3 months ago

你需要修改一些代码,有些代码加载了bert模型,在特别日语,你需要修改,不加载这样就很快了