소스 검색

讯飞asr测试,debug

Davidliu 1 개월 전
부모
커밋
1f8c1e4f19
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/core/voip/asr.py

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

@@ -221,7 +221,7 @@ class XfAsr:
         from urllib.parse import quote
         from urllib.parse import quote
         import logging
         import logging
 
 
-        logging.basicConfig()
+        # logging.basicConfig()
 
 
         ts = str(int(time.time()))
         ts = str(int(time.time()))
         tt = (app_id + ts).encode('utf-8')
         tt = (app_id + ts).encode('utf-8')
@@ -269,7 +269,7 @@ class XfAsr:
     #     print("send end tag success")
     #     print("send end tag success")
 
 
     def send_audio(self, chunk):
     def send_audio(self, chunk):
-        self.logger.info('xunfei.Asr.send_audio:chunk:%s, %s', len(chunk), chunk)
+        self.logger.warn('xunfei.Asr.send_audio:chunk:%s, %s', len(chunk), chunk)
         if self.ws:
         if self.ws:
             self.ws.send(chunk)
             self.ws.send(chunk)