|
@@ -324,7 +324,6 @@ class XfAsr:
|
|
|
result_1 = json.loads(result_dict["data"])
|
|
|
st = result_1["cn"]["st"]
|
|
|
rt = st["rt"]
|
|
|
- self.logger.error("xunfei.Asr.recv: st.type: %s", st['type'])
|
|
|
if st['type'] == "1":
|
|
|
final_result['name'] = 'TranscriptionResultChanged'
|
|
|
if st['type'] == "0":
|
|
@@ -340,4 +339,5 @@ class XfAsr:
|
|
|
final_result['status'] = result_dict["code"]
|
|
|
if self.ws:
|
|
|
self.ws.close()
|
|
|
+ self.logger.error("xunfei.Asr.recv: final_result: %s", final_result)
|
|
|
return final_result
|