[bug] board

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

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)
#处理音频数据,例如播放音频

View File

@ -25,6 +25,7 @@ if __name__ == '__main__':
try:
response, data_type = client.receive_per_data()
print(response[0], len(response[1]))
pritn(type(response[0]), type(response[1]))
except:
pass