Browse Source

讯飞asr测试,debug

Davidliu 1 month ago
parent
commit
8571e3cb11
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/core/voip/asr.py

+ 2 - 2
src/core/voip/asr.py

@@ -269,7 +269,7 @@ class XfAsr:
     #     print("send end tag success")
 
     def send_audio(self, chunk):
-        self.logger.warn('xunfei.Asr.send_audio: call_id: %s, chunk:%s, %s', self.tid, len(chunk), chunk)
+        self.logger.info('xunfei.Asr.send_audio: call_id: %s, chunk:%s, %s', self.tid, len(chunk), chunk)
         if self.ws:
             self.ws.send(chunk)
 
@@ -291,7 +291,7 @@ class XfAsr:
                     self.logger.info("xunfei.Asr.recv: receive result end call_id: %s", self.tid)
                     break
 
-                self.logger.warn("xunfei.Asr.recv: call_id: %s, message :%s", self.tid, message)
+                self.logger.info("xunfei.Asr.recv: call_id: %s, message :%s", self.tid, message)
                 if self.message_receiver:
                     self.message_receiver(self.convert_message(message))