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'
运行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'