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': # 启动监听状态