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
# 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":