2noise / ChatTTS

A generative speech model for daily dialogue.
https://2noise.com
GNU Affero General Public License v3.0
32.61k stars 3.54k forks source link

在运行官方给的Advanced Usage示例时报错 #794

Closed AstronautBase closed 1 month ago

AstronautBase commented 1 month ago

运行Basic Usage没有问题,但运行Advanced Usage时出现以下报错

Traceback (most recent call last): File "xxx/test1.py", line 10, in rand_spk = chat.sample_random_speaker() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "xxx/ChatTTS/ChatTTS/core.py", line 160, in sample_random_speaker return self.speaker.sample_random() ^^^^^^^^^^^^ AttributeError: 'Chat' object has no attribute 'speaker'

屏幕截图 2024-10-21 154855

Jarvanen commented 1 month ago

请问下解决了吗 是什么原因

roseonB612 commented 1 month ago

请问下解决了吗 是什么原因

AstronautBase commented 4 weeks ago

这里的原因是定义chat之后没有chat.load()