From: dxy <1731678236qq.com> Date: Thu, 18 Sep 2025 09:16:51 +0000 (+0800) Subject: 修改连接蓝牙耳机在语音留言模式加提示词 X-Git-Url: http://git.snicker.com.cn/sitemap.xml?a=commitdiff_plain;h=e0d23b018bbd1632d43c4c1b6562196317fdffae;p=mirrors%2FASR1603_G5.git 修改连接蓝牙耳机在语音留言模式加提示词 --- diff --git a/2.sdk/project/7PIN_1_5/sdk/services/microPython/ports/quectel/core/ai_VC.py b/2.sdk/project/7PIN_1_5/sdk/services/microPython/ports/quectel/core/ai_VC.py index 576ebdc6..43fc47a4 100644 --- a/2.sdk/project/7PIN_1_5/sdk/services/microPython/ports/quectel/core/ai_VC.py +++ b/2.sdk/project/7PIN_1_5/sdk/services/microPython/ports/quectel/core/ai_VC.py @@ -3145,11 +3145,8 @@ class AI_VC(Abstract): if EventMesh.publish("get_sos_flag")== 1: return if self.voice_flag == 1: #语音留言模式 - # EventMesh.publish("stop_AI_record") - self.stop_voice_timer.stop() #关闭语音留言模式定时器 - self.Close() - EventMesh.publish("open_led_green") - EventMesh.publish("start_voice_record",2)#停止静默录音 + tts_str = "语音留言模式,长按按钮开始录音,松开按钮结束" + EventMesh.publish("play_tts",[tts_str,1]) return EventMesh.publish("stop_voice_record") #开启静默需要关闭 @@ -3935,6 +3932,7 @@ class AI_VC(Abstract): self.VC_state = VC_State_SpeechStart if self.VC_mode == 1 : self.VC_record_state_flag = 2 + self.LocalRespondingEnded_timerout = 0 EventMesh.publish("open_led_blue") elif jsload_data["event"] == "asr.result" :#asr结果 self.AI_ASR_str = jsload_data["payload"]["content"] @@ -4004,7 +4002,7 @@ class AI_VC(Abstract): self.VC_state = VC_State_None elif jsload_data["event"] == "completed" :#会话结束 "event":"audio.convert.completed" #EventMesh.publish("open_led_green")#绿色 - + #if self.VC_state >= VC_State_TTSStart: self.LocalRespondingEnded_timerout = 8 self.VC_state = VC_State_End pass