From 032c295d0c0129fa2d84aab0e1da81df6651508f Mon Sep 17 00:00:00 2001 From: IrvingGao <1729854488@qq.com> Date: Tue, 18 Jun 2024 20:32:30 +0800 Subject: [PATCH] [client] fix bugs --- takway/clients/web_socket_client_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/takway/clients/web_socket_client_utils.py b/takway/clients/web_socket_client_utils.py index 0ee4ef6..2d79f3b 100644 --- a/takway/clients/web_socket_client_utils.py +++ b/takway/clients/web_socket_client_utils.py @@ -271,7 +271,7 @@ class WebSocketClinet: if self.sleep_event.is_set() or self.listening_event.is_set(): break if self.interrupt_event.is_set(): - print(f"{datetime.now()}: conversation interrupt (input).") + print(f"{datetime.now()}: button interrupt (input).") break if board == 'orangepi': recorder.hardware.set_led_off("red") @@ -478,7 +478,7 @@ class WebSocketClinet: break # 按键打断播放 if self.interrupt_event.is_set(): - print(f"{datetime.now()}: button interrupt.") + print(f"{datetime.now()}: button interrupt (output).") time.sleep(0.3) # 虽然程序到这里,但是扬声器不一定播放完毕,延迟用来避免问题