wwebsocket python

This commit is contained in:
游雁 2023-08-01 13:37:51 +08:00
parent 65c1878501
commit 6eb92a3536

View File

@ -204,7 +204,7 @@ async def message(id):
meg = await websocket.recv()
meg = json.loads(meg)
print(meg)
# print(meg)
wav_name = meg.get("wav_name", "demo")
text = meg["text"]