修改对话中断问题
authorazao <821478748@qq.com>
Thu, 25 Dec 2025 09:00:35 +0000 (17:00 +0800)
committerazao <821478748@qq.com>
Thu, 25 Dec 2025 09:00:35 +0000 (17:00 +0800)
2.sdk/project/K8/sdk/services/microPython/ports/quectel/core/ai_VC.py

index 4523816..6fa1035 100644 (file)
@@ -3165,9 +3165,9 @@ class AI_VC(Abstract):
                             #EventMesh.publish("open_led_green")#绿色
                             self.LocalRespondingEnded_timerout = 3
                             self.VC_state = VC_State_End
-                            if self.stop_tts == 1 and self.tts_completed == 1:#已经播放了音频并且音频停止了
+                            if self.tts_completed == 1:#已经播放了音频并且音频停止了
                                 self.AI_client_VC_end_tts()#音频结束
-                                self.stop_tts = 0
+                                # self.stop_tts = 0
                                 self.tts_completed = 0
                             EventMesh.publish("send_device_VC_state")#上传VC状态
                             pass
@@ -4049,7 +4049,6 @@ class AI_VC(Abstract):
                     try:
                         self.play_pcm.stream_stop()
                         self.play_pcm.close()
-                        self.stop_tts = 1 
                     except Exception as e:
                         usys.print_exception(e)
                     self.play_pcm=None