[bug] board
This commit is contained in:
parent
1a57b9fa5b
commit
10b5671726
|
@ -439,6 +439,7 @@ class WebSocketClinet:
|
||||||
# TODO: 判断bytes是否是最后一个,如果是最后一个,则播放完毕,切换监听模式
|
# TODO: 判断bytes是否是最后一个,如果是最后一个,则播放完毕,切换监听模式
|
||||||
audio_info, audio_data = item[1]
|
audio_info, audio_data = item[1]
|
||||||
data_type = audio_info['type']
|
data_type = audio_info['type']
|
||||||
|
print(f"{datetime.now()}: receive {data_type} data, start playing audio.")
|
||||||
|
|
||||||
print(f"{datetime.now()}: start playing audio.")
|
print(f"{datetime.now()}: start playing audio.")
|
||||||
|
|
||||||
|
@ -480,6 +481,7 @@ class WebSocketClinet:
|
||||||
print(f"audio play error: {e}")
|
print(f"audio play error: {e}")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
print(f"data_type: {data_type}")
|
||||||
if self.wakeup_event.is_set():
|
if self.wakeup_event.is_set():
|
||||||
if data_type == 'end':
|
if data_type == 'end':
|
||||||
# 启动监听状态
|
# 启动监听状态
|
||||||
|
|
Loading…
Reference in New Issue