[2noise/ChatTTS]AttributeError: module 'ChatTTS' has no attribute 'Chat'

2024-06-12 657 views
2

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'

回答

6

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

0

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