File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 5555 flash_size : 16MB
5656 framework :
5757 type : esp-idf
58- version : 4.4.8
59- platform_version : 5.4.0
6058 sdkconfig_options :
6159 CONFIG_ESP32S3_DEFAULT_CPU_FREQ_240 : " y"
6260 CONFIG_ESP32S3_DATA_CACHE_64KB : " y"
@@ -199,6 +197,7 @@ micro_wake_word:
199197 - voice_assistant.start :
200198 wake_word : !lambda return wake_word;
201199
200+
202201voice_assistant :
203202 id : va
204203 microphone : box_mic
@@ -227,10 +226,12 @@ voice_assistant:
227226 - text_sensor.template.publish :
228227 id : text_response
229228 state : !lambda return x;
230- on_tts_stream_start :
231229 - lambda : id(voice_assistant_phase) = ${voice_assist_replying_phase_id};
232230 - script.execute : draw_display
233- on_tts_stream_end :
231+ on_end :
232+ - wait_until :
233+ not :
234+ media_player.is_announcing :
234235 - if :
235236 condition :
236237 switch.is_off : mute
@@ -239,15 +240,12 @@ voice_assistant:
239240 else :
240241 - lambda : id(voice_assistant_phase) = ${voice_assist_muted_phase_id};
241242 - script.execute : draw_display
242- on_end :
243- - wait_until :
244- not :
245- media_player.is_announcing :
246243 - if :
247244 condition :
248245 and :
249246 - switch.is_off : mute
250247 - lambda : return id(wake_word_engine_location).state == "On device";
248+ - lambda : return id(voice_assistant_phase) != ${voice_assist_timer_finished_phase_id};
251249 then :
252250 - micro_wake_word.start :
253251 on_error :
You can’t perform that action at this time.
0 commit comments