按键音和标识打印
authordxy <1731678236qq.com>
Tue, 9 Sep 2025 06:21:15 +0000 (14:21 +0800)
committerdxy <1731678236qq.com>
Tue, 9 Sep 2025 06:21:15 +0000 (14:21 +0800)
2.sdk/project/7PIN_1_5/sdk/services/microPython/ports/quectel/core/ai_VC.py

index d3494b8..16a952f 100644 (file)
@@ -2811,8 +2811,9 @@ class AI_VC(Abstract):
         return self.VC_satrt_flag
     #检查有没有意外打开ai部分功能
     def chack_vc_start(self):
+        print("chack_vc_start:{} {} {} {}".format(self.VC_satrt_flag,self.VC_record_state_flag,self.AI_client_VC_isconnect,self.VC_Play_flag))
         if self.VC_satrt_flag == 0:
-            if self.VC_record_state_flag == 1 or self.AI_client_VC_isconnect == 1 or  self.VC_Play_flag == 1:
+            if self.VC_record_state_flag != 0 or self.AI_client_VC_isconnect == 1 or  self.VC_Play_flag == 1:
                 self.Close()
     def VC_30S_timer_cb(self, *args): #
         EventMesh.publish("publish_AI_btnInfo",{"func":self.VC_30S_timer_cb_}) 
@@ -2953,7 +2954,11 @@ class AI_VC(Abstract):
         self.get_config_timer_count = 0
         self.key_state = 1
         if dev_type == "7PIN":
-            self.aud.aud_tone_play(10,200)#播放按键音
+            # self.record.stream_stop()
+            # self.record.stop()#关闭录音
+            # self.aud.stopPlayStream()
+            # self.aud.stopAll()
+            self.aud.aud_tone_play(10,400)#播放按键音
         self.Close()
         # if dev_type == "7PIN":
         #     self.chenggong_tone()