余尚辉 3 dní pred
rodič
commit
99edfb9ae2
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/core/voip/bot.py

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

@@ -222,7 +222,7 @@ class MyCall(pj.Call):
                 # print(f"开始计时: {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:
+            if elapsed_time > wait_time:
                 # self.user_asr_text_queue.put("ASR408error")
                 self.chat('ASR408error')
         except ValueError as e: