Skip to content

Commit afb08e1

Browse files
authored
Add missing condition: for 2024.8 B2
1 parent 9b22d6d commit afb08e1

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

esphome/onju-voice-microwakeword.yaml

+11-8
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ substitutions:
33
friendly_name: "Onju Voice Satellite"
44
project_version: "1.1.0"
55
device_description: "Onju Voice Satellite with ESPHome software and microWakeWord"
6-
wakeup_sound_url: "https://github.com/tetele/onju-voice-satellite/raw/main/res/wakeup.mp3" # New Notification #7 by UNIVERSFIELD https://freesound.org/people/UNIVERSFIELD/sounds/736267/
7-
error_sound_url: "https://github.com/tetele/onju-voice-satellite/raw/main/res/error.mp3" # Error #8 by UNIVERSFIELD https://freesound.org/people/UNIVERSFIELD/sounds/734442/
8-
timer_finished_sound_url: "https://github.com/tetele/onju-voice-satellite/raw/main/res/timer_finished.mp3" # New Notification #6 by UNIVERSFIELD https://freesound.org/people/UNIVERSFIELD/sounds/734445/
6+
wakeup_sound_url: "http://192.168.181.42:8123/local/wakeup.mp3" # New Notification #7 by UNIVERSFIELD https://freesound.org/people/UNIVERSFIELD/sounds/736267/
7+
error_sound_url: "http://192.168.181.42:8123/local/error.mp3" # Error #8 by UNIVERSFIELD https://freesound.org/people/UNIVERSFIELD/sounds/734442/
8+
timer_finished_sound_url: "http://192.168.181.42:8123/local/timer_finished.mp3" # New Notification #6 by UNIVERSFIELD https://freesound.org/people/UNIVERSFIELD/sounds/734445/
99

1010
external_components:
1111
- source:
@@ -70,6 +70,7 @@ esp32:
7070
# need to set a s3 compatible board for the adf-sdk to compile
7171
# board specific code is not used though
7272
CONFIG_ESP32_S3_BOX_BOARD: "y"
73+
CONFIG_ESP32S3_DEFAULT_CPU_FREQ_240: "y"
7374

7475
psram:
7576
mode: octal
@@ -191,7 +192,7 @@ media_player:
191192
name: None
192193
internal: false
193194
keep_pipeline_alive: true
194-
codec: auto
195+
# codec: auto
195196
pipeline:
196197
- self
197198
- resampler
@@ -219,8 +220,9 @@ micro_wake_word:
219220
- media_player.pause
220221
- media_player.play_media: "${wakeup_sound_url}"
221222
- wait_until:
222-
not:
223-
media_player.is_playing: onju_out
223+
condition:
224+
not:
225+
media_player.is_playing: onju_out
224226
- voice_assistant.start:
225227
wake_word: !lambda return wake_word;
226228

@@ -255,8 +257,9 @@ voice_assistant:
255257
effect: speaking
256258
on_end:
257259
- wait_until:
258-
not:
259-
media_player.is_playing:
260+
condition:
261+
not:
262+
media_player.is_playing:
260263
- script.execute: reset_led
261264
- if:
262265
condition:

0 commit comments

Comments
 (0)