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