[bug] board

This commit is contained in:
IrvingGao committed 2024-05-23 20:05:05 +08:00
1 parent 2a298fb5e2
commit 1a57b9fa5b
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -176,7 +176,7 @@ class BaseWebSocketClient:
#提取文本和二进制音频数据
text_bytes = recv_data[8:8 + text_length]
audio = recv_data[8 + text_length:8 + text_length + audio_length]
text = text_bytes.decode('utf-8')
text = json.loads(text_bytes.decode('utf-8'))
print("Received text:",text)
#处理音频数据,例如播放音频