docs: update README.md

This commit is contained in:
Saboteur7
2024-06-04 12:50:59 +08:00
parent 6431487c7a
commit 1f6f9103d9
4 changed files with 25 additions and 20 deletions

View File

@@ -195,7 +195,7 @@ def xunfei_asr(APPID,APISecret,APIKey,BusinessArgsASR,AudioFile):
AudioFile=AudioFile)
#wsParam是global变量给上面on_open函数调用使用的
wsParam = wsParam1
websocket.enableTrace(True)
websocket.enableTrace(False)
wsUrl = wsParam.create_url()
ws = websocket.WebSocketApp(wsUrl, on_message=on_message, on_error=on_error, on_close=on_close)
ws.on_open = on_open

View File

@@ -129,7 +129,7 @@ def on_open(ws):
"data": wsParam.Data,
}
d = json.dumps(d)
print("------>开始发送文本数据")
# print("------>开始发送文本数据")
ws.send(d)
if os.path.exists(outfile):
os.remove(outfile)