Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update microWakeWord Model definition for 2024.7 release #67

Merged
merged 3 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The config is distributed under the **MIT** License. See [`LICENSE`](LICENSE) fo

- Home Assistant 2024.2.0 or newer
- A voice assistant [configured in HA](https://my.home-assistant.io/redirect/voice_assistants/) with STT and TTS in a language of your choice
- ESPHome 2024.2.0 or newer
- ESPHome 2024.7.0 or newer

## Known issues and limitations

Expand Down
16 changes: 9 additions & 7 deletions esphome/onju-voice-microwakeword.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ esphome:
project:
name: tetele.onju_voice_satellite
version: "${project_version}"
min_version: 2024.6.0
min_version: 2024.7.0
jhbruhn marked this conversation as resolved.
Show resolved Hide resolved
platformio_options:
board_build.flash_mode: dio
board_build.arduino.memory_type: qio_opi
Expand Down Expand Up @@ -195,9 +195,13 @@ media_player:
old_volume = new_volume;

micro_wake_word:
model: okay_nabu
# model: hey_jarvis
# model: alexa
models:
tetele marked this conversation as resolved.
Show resolved Hide resolved
#- model: https://github.com/kahrendt/microWakeWord/releases/download/v2.1_models/alexa.json
- model: https://github.com/kahrendt/microWakeWord/releases/download/v2.1_models/okay_nabu.json
#- model: https://github.com/kahrendt/microWakeWord/releases/download/v2.1_models/hey_jarvis.json
#- model: https://github.com/kahrendt/microWakeWord/releases/download/v2.1_models/hey_mycroft.json
vad:
model: https://github.com/kahrendt/microWakeWord/releases/download/v2.1_models/vad.json
on_wake_word_detected:
- if:
condition: media_player.is_playing
Expand Down Expand Up @@ -235,18 +239,16 @@ voice_assistant:
green: 100%
effect: speaking
on_end:
- delay: 200ms
- wait_until:
not:
media_player.is_playing: onju_out
media_player.is_playing:
tetele marked this conversation as resolved.
Show resolved Hide resolved
- script.execute: reset_led
- if:
condition:
and:
- switch.is_on: use_wake_word
- binary_sensor.is_off: mute_switch
then:
- delay: 200ms
- micro_wake_word.start
on_client_connected:
- if:
Expand Down