[event] fix bugs

This commit is contained in:
IrvingGao 2024-06-18 22:36:03 +08:00
parent fd78acf698
commit bf2b8c2625
1 changed files with 1 additions and 0 deletions

View File

@ -384,6 +384,7 @@ class WebSocketClinet:
if audio_dict['is_end']:
self.listening_event.clear()
self.speaking_event.set()
print(f"{datetime.now()}: Audio data send finished, switch to speaking mode.")
if not self.wakeup_event.is_set():
continue