Browse Source

Merge branch 'develop' of ssh://gitlab.fuxicarbon.com:1111/client_service/voice-gateway-service into develop

Davidliu 3 months ago
parent
commit
9fdf7ad2f6
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/core/voip/bot.py

+ 2 - 3
src/core/voip/bot.py

@@ -33,7 +33,7 @@ calls = {}
 # recording_file = '/code/src/core/voip/incoming_call.wav'
 # player_file1 = '/code/src/core/voip/test111.wav'
 # player_file2 = '/code/src/core/voip/test222.wav'
-
+from src.core.voip.asr import TestSt
 
 class BotStatus(Enum):
     # 等待用户讲话,未超时
@@ -212,8 +212,7 @@ class MyCall(pj.Call):
 
         self.cur_player_file = None   #当前播放的文件
 
-        from src.core.voip.asr import TestSt
-        self.asr = TestSt(call_id, message_receiver=self.on_receiver_asr_result)  # 创建ASR实例
+        self.asr = TestSt(self.session_id, message_receiver=self.on_receiver_asr_result)  # 创建ASR实例
         self.asr.start()  # 启动ASR线程
 
         self.start_time = time.time()  # 当前机器人对话开始时间