I tried to train my model. The component produces the following error in the logs. I am attaching the installation logs if they help anyone.
10:47:53 [W] [micro_wake_word:153]
Wake word component is marked as failed. Please check setup logs
Trained the word in a lightweight version: Google Colab
If I install the Jarvis model, everything works, as soon as I change it to my settings, it doesn’t start. Pointing the model link directly to tflite does not help.
yaml:
esphome:
name: wake-word-test3
friendly_name: wake-word-test3
platformio_options:
board_build.flash_mode: dio
on_boot:
- light.turn_on:
id: led_ww
blue: 100%
brightness: 60%
effect: fast pulse
esp32:
board: esp32-s3-devkitc-1
flash_size: 16MB
framework:
type: esp-idf
sdkconfig_options:
CONFIG_ESP32S3_DEFAULT_CPU_FREQ_240: "y"
CONFIG_ESP32S3_DATA_CACHE_64KB: "y"
CONFIG_ESP32S3_DATA_CACHE_LINE_64B: "y"
CONFIG_AUDIO_BOARD_CUSTOM: "y"
web_server:
port: 80
local: true
psram:
mode: octal # quad for N8R2 and octal for N16R8
speed: 80MHz
logger:
level: INFO
# Enable Home Assistant API
api:
encryption:
key: "***"
ota:
password: "***"
wifi:
ssid: "***"
password: "***"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Wake-Word-Test Fallback Hotspot"
password: "87654321"
captive_portal:
button:
- platform: restart
name: "Restart"
id: but_rest
switch:
- platform: template
id: mute
name: mute
optimistic: true
on_turn_on:
- micro_wake_word.stop:
- light.turn_on:
id: led_ww
red: 100%
green: 0%
blue: 0%
brightness: 60%
effect: fast pulse
- delay: 2s
- light.turn_off:
id: led_ww
- light.turn_on:
id: led_ww
red: 100%
green: 0%
blue: 0%
brightness: 30%
on_turn_off:
- micro_wake_word.start:
- light.turn_on:
id: led_ww
red: 0%
green: 100%
blue: 0%
brightness: 60%
effect: fast pulse
- delay: 2s
- light.turn_off:
id: led_ww
- platform: gpio
pin: GPIO17
id: relay_1
name: "relay_1"
icon: "mdi:gate"
on_turn_on:
- delay: 2000ms
- switch.turn_off: relay_1
light:
- platform: esp32_rmt_led_strip
id: led_ww
rgb_order: GRB
pin: GPIO48
num_leds: 1
rmt_channel: 0
chipset: ws2812
name: "on board light"
effects:
- pulse:
- pulse:
name: "Fast Pulse"
transition_length: 0.5s
update_interval: 0.5s
min_brightness: 0%
max_brightness: 100%
# Audio and Voice Assistant Config
i2s_audio:
- id: i2s_in
i2s_lrclk_pin: GPIO3 #WS
i2s_bclk_pin: GPIO2 #SCK
- id: i2s_speaker
i2s_lrclk_pin: GPIO6 #LRC
i2s_bclk_pin: GPIO7 #BLCK
microphone:
- platform: i2s_audio
id: va_mic
adc_type: external
i2s_din_pin: GPIO4 #SD pin on the INMP441
channel: left
pdm: false
i2s_audio_id: i2s_in
bits_per_sample: 32 bit
# on_data:
# - logger.log:
# format: "Received %d bytes"
# args: ['x.size()']
# - light.turn_on:
# id: led_ww
# red: 0%
# green: 35%
# blue: 70%
# brightness: 60%
# effect: fast pulse
# - delay: 2s
# - light.turn_off:
# id: led_ww
speaker:
platform: i2s_audio
id: va_speaker
i2s_audio_id: i2s_speaker
dac_type: external
i2s_dout_pin: GPIO8 # DIN Pin of the MAX98357A Audio Amplifier
mode: mono
#external_components:
# - source: github://devalgo1/big_den_words@dev
# components: micro_wake_word
# refresh: 0s
micro_wake_word:
#model: https://github.com/devalgo1/big_den_words/raw/main/ninza.tflite
on_wake_word_detected:
# then:
- light.turn_on:
id: led_ww
red: 30%
green: 30%
blue: 70%
brightness: 60%
effect: fast pulse
- delay: 2s
- light.turn_off:
id: led_ww
- switch.turn_on:
id: relay_1
model: https://raw.githubusercontent.com/devalgo1/nindzaa/main/nindzaa.json
Logs: