ChatTTS icon indicating copy to clipboard operation
ChatTTS copied to clipboard

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

Open JasonZhangC opened this issue 1 year ago • 5 comments

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 = ["<PUT YOUR TEXT HERE>",]

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

JasonZhangC avatar May 31 '24 01:05 JasonZhangC

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

Gitreceiver avatar May 31 '24 03:05 Gitreceiver

+1

cgk100 avatar May 31 '24 03:05 cgk100

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

While941 avatar May 31 '24 07:05 While941

There are so many bugs in ChatTTS.

Mengjintao avatar Jul 09 '24 09:07 Mengjintao

AttributeError: 'Chat' object has no attribute 'load_models'

Mengjintao avatar Jul 09 '24 09:07 Mengjintao

This issue was closed because it has been inactive for 15 days since being marked as stale.

github-actions[bot] avatar Aug 25 '24 04:08 github-actions[bot]