优化按键单击音效响应时间
authorazao <821478748@qq.com>
Thu, 9 Oct 2025 09:54:21 +0000 (17:54 +0800)
committerazao <821478748@qq.com>
Thu, 9 Oct 2025 09:54:21 +0000 (17:54 +0800)
2.sdk/project/K8/sdk/services/microPython/ports/quectel/core/ai_VC.py

index 4635146..f1f5997 100644 (file)
@@ -467,11 +467,8 @@ class AI_dev(Abstract):
         except Exception as e: 
             usys.print_exception(e)
     def is_double_judge(self, *args):
-        if self.press_count == 1:  # 仅一次按下,判定为单击
-            screen_name = EventMesh.publish("get_screen_NAME")
-            if screen_name == "system_init" or screen_name == "poweron" :
-                return
-            EventMesh.publish("audio_montage_play",["chenggong.mp3"])  #进入VC音频
+        # if self.press_count == 1:  # 仅一次按下,判定为单击
+            
         # 重置计数(无论何种情况,超时后清零)
         self.press_count = 0
 
@@ -3046,9 +3043,9 @@ class AI_VC(Abstract):
                             # self.VC_dialog_id = payload["dialog_id"] 
                             # self.VC_task_id = jsload_data["task_id"] 
                             EventMesh.publish("open_led_blue")
-                            
                             print("VC:Started!!!!!!!!\r\n")
                             if self.AI_TTS_str == "" and self.AI_music_str == "":
+                                EventMesh.publish("audio_montage_play",["chenggong.mp3"])  #进入VC音频
                                 #开始上传语音
                                 self.draw_result = 0
                                 if dev_type != "7PIN" and dev_type != "7PIN_coze":