2noise / ChatTTS

A generative speech model for daily dialogue.
https://2noise.com
Other
27.21k stars 2.96k forks source link

AttributeError: module 'ChatTTS' has no attribute 'Chat' #115

Open Zhangzhicheng001 opened 1 month ago

Zhangzhicheng001 commented 1 month ago

python 3.11.9 先安装requirements.txt的包之后 运行DEMO,出现下列错误。


AttributeError Traceback (most recent call last) Cell In[10], line 4 1 import ChatTTS 2 from IPython.display import Audio ----> 4 chat = ChatTTS.Chat() 5 chat.load_models() 7 texts = ["",]

AttributeError: module 'ChatTTS' has no attribute 'Chat'

Gitreceiver commented 1 month ago

+1 尝试了,发现目前直接调用ChatTTS库还存在问题,所以先将仓库克隆,然后再在目录下进行安装环境,就可以正确调用Chat类了。

cgk100 commented 1 month ago

+1

While941 commented 1 month ago

clone下来的项目会自动套上一层ChatTTS路径,需要把你的demo文件放到ChatTTS的根目录中