Skip to content

Commit 6a7cb0b

Browse files
author
Kevin Ahrendt
committed
remove idf 4 dependency and fix VA triggers
1 parent c566042 commit 6a7cb0b

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

esp32-s3-box/esp32-s3-box.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ esp32:
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+
202201
voice_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:

0 commit comments

Comments
 (0)