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.59k stars 581 forks source link

如何离线使用 #156

Open cthulhu-tww opened 3 months ago

cthulhu-tww commented 3 months ago

使用这个库,将模型下载下来后还是不可以离线使用,有很多hardcode定义从huggingfacehub去下载模型,我甚至没办法去修改,比如japanese.py中的 第569和570行,希望作者能够解决这些问题。

zhangjinhui152 commented 2 months ago

他貌似每次都会把其他语言的模型重新拉一遍,于是我直接删掉其他语言的映射就可以离线使用了 image

allonx commented 2 months ago

@zhangjinhui152 改哪些文件可以离线使用啊?

shuanshuan commented 2 months ago

api.py use_hf=False @allonx @zhangjinhui152 @cthulhu-tww

def __init__(self, 
            language,
            device='auto',
            use_hf=False,
            config_path=None,
            ckpt_path=None):