From 10b5671726b01004155c88c89d7754042584c999 Mon Sep 17 00:00:00 2001 From: IrvingGao <1729854488@qq.com> Date: Thu, 23 May 2024 20:07:40 +0800 Subject: [PATCH] [bug] board --- takway/clients/web_socket_client_utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/takway/clients/web_socket_client_utils.py b/takway/clients/web_socket_client_utils.py index 0cf0a6d..10730d0 100644 --- a/takway/clients/web_socket_client_utils.py +++ b/takway/clients/web_socket_client_utils.py @@ -439,6 +439,7 @@ class WebSocketClinet: # TODO: 判断bytes是否是最后一个,如果是最后一个,则播放完毕,切换监听模式 audio_info, audio_data = item[1] data_type = audio_info['type'] + print(f"{datetime.now()}: receive {data_type} data, start playing audio.") print(f"{datetime.now()}: start playing audio.") @@ -480,6 +481,7 @@ class WebSocketClinet: print(f"audio play error: {e}") continue + print(f"data_type: {data_type}") if self.wakeup_event.is_set(): if data_type == 'end': # 启动监听状态