Browse Source

feat: iit

余尚辉 4 months ago
parent
commit
98f054b3da
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/core/voip/bot.py

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

@@ -222,7 +222,8 @@ class MyCall(pj.Call):
                 self.play_complete_flag = True
                 self.play_start_time = current_time
                 # print(f"开始计时: {self.play_start_time}")
-            elapsed_time = current_time - self.play_start_time
+            elapsed_time = int(current_time - self.play_start_time)
+            print(f"当前时间: {current_time}, 已过时间: {elapsed_time}, 最大等待时间: {wait_time}")
             if elapsed_time >= wait_time:
                 # self.user_asr_text_queue.put("ASR408error")
                 self.chat('ASR408error')