From b777f27cb7201e95e9b145f1b880214c7662c10a Mon Sep 17 00:00:00 2001 From: Saboteur7 <138805485+Saboteur7@users.noreply.github.com> Date: Tue, 4 Jun 2024 11:42:05 +0800 Subject: [PATCH] chore: remove some xunfei voice log --- voice/xunfei/xunfei_asr.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/voice/xunfei/xunfei_asr.py b/voice/xunfei/xunfei_asr.py index f3cc9d5..7a863a4 100644 --- a/voice/xunfei/xunfei_asr.py +++ b/voice/xunfei/xunfei_asr.py @@ -109,23 +109,23 @@ def on_message(ws, message): rep_start = rep[0] rep_end = rep[1] for sn in range(rep_start,rep_end+1): - print("before pop",whole_dict) - print("sn",sn) + #print("before pop",whole_dict) + #print("sn",sn) whole_dict.pop(sn,None) - print("after pop",whole_dict) + #print("after pop",whole_dict) results = "" for i in data: for w in i["cw"]: results += w["w"] whole_dict[sn]=results - print("after add",whole_dict) + #print("after add",whole_dict) else: results = "" for i in data: for w in i["cw"]: results += w["w"] whole_dict[sn]=results - print("sid:%s call success!,data is:%s" % (sid, json.dumps(data, ensure_ascii=False))) + #print("sid:%s call success!,data is:%s" % (sid, json.dumps(data, ensure_ascii=False))) except Exception as e: print("receive msg,but parse exception:", e)