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

New micro wake word 2 m5stack-atom-echo.yaml #242

Merged
merged 22 commits into from
Jul 28, 2024
Merged

Conversation

HarvsG
Copy link
Contributor

@HarvsG HarvsG commented Jul 22, 2024

Micro wake word 2 is possible on the M5 Stack Atom Echo since 2024.7.0
However it's end of speech detection was affected greatly by the issue fixed in esphome/esphome#7109 so this version targets 2024.7.1

This firmware is adapted from https://github.com/esphome/firmware/blob/main/voice-assistant/m5stack-atom-echo.yaml

There are some notable changes:

  • Micro wake word 2 is enabled, with a default of 'okay_nabu'.
  • The use_wake_word toggle that used to switch between steamed audio to 'click to converse' is replaced by a toggle use_micro_wake_word that switches between micro wake word and steamed audio.
  • No more click to converse
  • A new teal light colour when not using micro_wake_word
  • Removed improv ble as
    Error: The program size (2104013 bytes) is greater than maximum allowed (1835008 bytes)
    *** [checkprogsize] Explicit exit, status 1
    ========================= [FAILED] Took 26.87 seconds =========================
    

Example firmware built on 2024.7.1 807c9b5 which can be flashed by https://web.esphome.io/

substitutions:
  name: m5stack-atom-echo
  friendly_name: M5Stack Atom Echo
  micro_wake_word_model: okay_nabu # hey_jarvis and hey_mycroft are also supported
packages:
  m5stack.atom-echo-wake-word-voice-assistant: github://HarvsG/firmware/wake-word-voice-assistant/m5stack-atom-echo.yaml@patch-3
esphome:
  name: ${name}
  name_add_mac_suffix: True
  friendly_name: ${friendly_name}
RAM:   [=         ]  11.1% (used 36528 bytes from 327680 bytes)
Flash: [========= ]  85.5% (used 1569821 bytes from 1835008 bytes)

(Note because the URLs in the firmware point towards this repo, if you try to adopt via the ESPHome dashboard it will overwrite this PR with the old, non mww2 firmware until this is merged)


Until merge, if you would like to install your own via ESPHome dashboard then this config should work

substitutions:
  name: m5stack-atom-echo
  friendly_name: M5Stack Atom Echo
  micro_wake_word_model: okay_nabu # hey_jarvis and hey_mycroft are also supported
packages:
  m5stack.atom-echo-wake-word-voice-assistant: github://HarvsG/firmware/wake-word-voice-assistant/m5stack-atom-echo.yaml@patch-3
esphome:
  name: ${name}
  name_add_mac_suffix: True
  friendly_name: ${friendly_name}
api:
  encryption:
    key: SOMEAPIKEY
wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

HarvsG and others added 2 commits July 22, 2024 11:12
The program size (2104013 bytes) is greater than maximum allowed (1835008 bytes)
@HarvsG
Copy link
Contributor Author

HarvsG commented Jul 22, 2024

substitutions:
  name: m5stack-atom-echo
  friendly_name: M5Stack Atom Echo
  micro_wake_word_model: okay_nabu # hey_jarvis and hey_mycroft are also supported
packages:
  m5stack.atom-echo-wake-word-voice-assistant: github://HarvsG/firmware/wake-word-voice-assistant/m5stack-atom-echo.yaml@patch-3
esphome:
  name: ${name}
  name_add_mac_suffix: True
  friendly_name: ${friendly_name}
api:
  encryption:
    key: !secret m5_stack_api_key
wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

This is working well for me.
I get the occasional Cannot receive audio, buffer is full error, but that is not new, nor unique to this firmware and it is fixed by clicking the button once.logs_m5stack-atom-echo-b836b0_logs_buffer_error.txt
If someone tells me how to do it without including my secrets - I'd be happy to drop a generic firmware file here.

@HarvsG HarvsG marked this pull request as ready for review July 22, 2024 11:22
@HarvsG HarvsG requested a review from pfefferle July 22, 2024 11:51
@HarvsG
Copy link
Contributor Author

HarvsG commented Jul 22, 2024

Do you think using a selector like

select:
- platform: template
entity_category: config
name: Wake word engine location
id: wake_word_engine_location
is better?
Edit: I have done this in 807c9b5

@HarvsG HarvsG marked this pull request as draft July 22, 2024 12:38
@Martin22

This comment was marked as off-topic.

@HarvsG

This comment was marked as off-topic.

@HarvsG HarvsG requested a review from pfefferle July 25, 2024 09:21
@HarvsG HarvsG requested a review from Evanito July 25, 2024 17:46
@jesserockz jesserockz merged commit 06cf5f3 into esphome:main Jul 28, 2024
10 of 14 checks passed
@almoney
Copy link

almoney commented Sep 19, 2024

Do you have any thoughts on how to roll the microwave wake word forward to ESPHome 2024.9.0?

This is the output when trying to build:

INFO ESPHome 2024.9.0
INFO Reading configuration /config/esphome/m5stack-atom-echo-23ed4c.yaml...
INFO Updating https://github.com/esphome/esphome.git@pull/5230/head
INFO Updating https://github.com/jesserockz/esphome-components.git@None
Failed config

speaker.i2s_audio: [source /data/packages/23002489/wake-word-voice-assistant/m5stack-atom-echo.yaml:65]
platform: i2s_audio
id: echo_speaker
i2s_dout_pin: GPIO22
dac_type: external

[mode] is an invalid option for [speaker.i2s_audio]. Did you mean [i2s_mode]?
mode: mono

@q20
Copy link

q20 commented Sep 19, 2024

Do you have any thoughts on how to roll the microwave wake word forward to ESPHome 2024.9.0?

This is the output when trying to build:

INFO ESPHome 2024.9.0 INFO Reading configuration /config/esphome/m5stack-atom-echo-23ed4c.yaml... INFO Updating https://github.com/esphome/esphome.git@pull/5230/head INFO Updating https://github.com/jesserockz/esphome-components.git@None Failed config

speaker.i2s_audio: [source /data/packages/23002489/wake-word-voice-assistant/m5stack-atom-echo.yaml:65] platform: i2s_audio id: echo_speaker i2s_dout_pin: GPIO22 dac_type: external

[mode] is an invalid option for [speaker.i2s_audio]. Did you mean [i2s_mode]? mode: mono

I'm seeing the same error with my m5stack-atom on ESPHome 2024.9.0. ☝️

@dbensmith
Copy link

Do you have any thoughts on how to roll the microwave wake word forward to ESPHome 2024.9.0?
This is the output when trying to build:
INFO ESPHome 2024.9.0 INFO Reading configuration /config/esphome/m5stack-atom-echo-23ed4c.yaml... INFO Updating https://github.com/esphome/esphome.git@pull/5230/head INFO Updating https://github.com/jesserockz/esphome-components.git@None Failed config
speaker.i2s_audio: [source /data/packages/23002489/wake-word-voice-assistant/m5stack-atom-echo.yaml:65] platform: i2s_audio id: echo_speaker i2s_dout_pin: GPIO22 dac_type: external
[mode] is an invalid option for [speaker.i2s_audio]. Did you mean [i2s_mode]? mode: mono

I'm seeing the same error with my m5stack-atom on ESPHome 2024.9.0. ☝️

Try changing mode to channel (see 69a0de7061e93da431bfa4410d1aaa07b0137e51).

@BramNH
Copy link

BramNH commented Sep 23, 2024

Can anyone confirm that MicroWakeWord works on their Atom Echo? All my builds with ESPHome version 2024.7.1, 2024.8.3, 2024.9.0 result in unstable software. It does connect with Home Assistant and entities are shown and e.g. listen light can be toggled.

Below are 2 logs, the first one is where my log stop before I reset the device, the logs stop with: (0) cpu_start: Starting scheduler on APP CPU. Then when I reset the device, it appends the logs with the second log below and shows that the wakeword was actually detected, but then stops at [D][voice_assistant:520]: Desired state set to STREAMING_MICROPHONE

Could anyone point me into directions?

[18:28:59][D][wifi:497]: Found networks:
[I][wifi:541]: - [redacted] [redacted]▂▄▆█
[D][wifi:542]:     Channel: 13
[D][wifi:543]:     RSSI: -50 dB
[D][wifi:546]: - [redacted] [redacted]▂▄▆█
[D][wifi:546]: - [redacted] [redacted]▂▄▆█
[D][wifi:546]: - [redacted] [redacted]▂▄▆█
[D][wifi:546]: - [redacted] [redacted]▂▄▆█
[D][wifi:546]: - [redacted] [redacted]▂▄▆█
[D][wifi:546]: - [redacted] [redacted]▂▄▆█
[D][wifi:546]: - [redacted] [redacted]▂▄▆█
[I][wifi:313]: WiFi Connecting to [redacted]...
[D][esp-idf:000][wifi]: I (4820) wifi:
[D][esp-idf:000][wifi]: new:<13,0>, old:<1,0>, ap:<255,255>, sta:<13,0>, prof:1
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (4823) wifi:
[D][esp-idf:000][wifi]: state: init -> auth (b0)
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (6313) wifi:
[D][esp-idf:000][wifi]: state: auth -> assoc (0)
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (6324) wifi:
[D][esp-idf:000][wifi]: state: assoc -> run (10)
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (6350) wifi:
[D][esp-idf:000][wifi]: connected with [redacted], aid = 13, channel 13, BW20, bssid = 34:60:f9:8a:18:da
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (6351) wifi:
[D][esp-idf:000][wifi]: security: WPA3-SAE, phy: bgn, rssi: -51
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (6366) wifi:
[D][esp-idf:000][wifi]: pm start, type: 1

[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (6377) wifi:
[D][esp-idf:000][wifi]: AP's beacon interval = 102400 us, DTIM period = 1
[D][esp-idf:000][wifi]: 

ets Jun  8 2016 00:22:57
[18:28:59]
[18:28:59]rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[18:28:59]configsip: 188777542, SPIWP:0xee
[18:28:59]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[18:28:59]mode:DIO, clock div:2
[18:28:59]load:0x3fff0030,len:6652
[18:28:59]ho 0 tail 12 room 4
[18:28:59]load:0x40078000,len:15052
[18:28:59]load:0x40080400,len:3836
[18:28:59]entry 0x4008069c
[18:28:59]I (29) boot: ESP-IDF 4.4.7 2nd stage bootloader
[18:28:59]I (30) boot: compile time 14:14:13
[18:28:59]I (30) boot: Multicore bootloader
[18:28:59]I (33) boot: chip revision: v1.1
[18:28:59]I (37) boot.esp32: SPI Speed      : 40MHz
[18:28:59]I (41) boot.esp32: SPI Mode       : DIO
[18:28:59]I (46) boot.esp32: SPI Flash Size : 4MB
[18:28:59]I (50) boot: Enabling RNG early entropy source...
[18:28:59]I (56) boot: Partition Table:
[18:28:59]I (59) boot: ## Label            Usage          Type ST Offset   Length
[18:28:59]I (67) boot:  0 otadata          OTA data         01 00 00009000 00002000
[18:28:59]I (74) boot:  1 phy_init         RF data          01 01 0000b000 00001000
[18:28:59]I (82) boot:  2 app0             OTA app          00 10 00010000 001c0000
[18:28:59]I (89) boot:  3 app1             OTA app          00 11 001d0000 001c0000
[18:28:59]I (96) boot:  4 nvs              WiFi data        01 02 00390000 0006d000
[18:28:59]I (104) boot: End of partition table
[18:28:59]I (108) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=52e1ch (339484) map
[18:28:59]I (240) esp_image: segment 1: paddr=00062e44 vaddr=3ffb0000 size=033fch ( 13308) load
[18:28:59]I (245) esp_image: segment 2: paddr=00066248 vaddr=40080000 size=09dd0h ( 40400) load
[18:28:59]I (262) esp_image: segment 3: paddr=00070020 vaddr=400d0020 size=f3858h (997464) map
[18:29:00]I (623) esp_image: segment 4: paddr=00163880 vaddr=40089dd0 size=0bde0h ( 48608) load
[18:29:00]I (654) boot: Loaded app from partition at offset 0x10000
[18:29:00]I (654) boot: Disabling RNG early entropy source...
[18:29:00]I (665) cpu_start: Multicore app
[18:29:00]I (666) cpu_start: Pro cpu up.
[18:29:00]I (666) cpu_start: Starting app cpu, entry point is 0x40082628
[18:29:00]I (0) cpu_start: App cpu up.
[18:29:00]I (684) cpu_start: Pro cpu start user code
[18:29:00]I (684) cpu_start: cpu freq: 160000000
[18:29:00]I (684) cpu_start: Application information:
[18:29:00]I (688) cpu_start: Project name:     voiceassistant
[18:29:00]I (694) cpu_start: App version:      2024.9.0
[18:29:00]I (699) cpu_start: Compile time:     Sep 22 2024 14:09:17
[18:29:00]I (705) cpu_start: ELF file SHA256:  7fcbdd7ff7460a4a...
[18:29:00]I (711) cpu_start: ESP-IDF:          4.4.7
[18:29:00]I (716) cpu_start: Min chip rev:     v0.0
[18:29:00]I (720) cpu_start: Max chip rev:     v3.99 
[18:29:00]I (725) cpu_start: Chip rev:         v1.1
[18:29:00]I (730) heap_init: Initializing. RAM available for dynamic allocation:
[18:29:00]I (737) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
[18:29:00]I (743) heap_init: At 3FFB86F8 len 00027908 (158 KiB): DRAM
[18:29:00]I (749) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
[18:29:00]I (756) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
[18:29:00]I (762) heap_init: At 40095BB0 len 0000A450 (41 KiB): IRAM
[18:29:00]I (770) spi_flash: detected chip: gd
[18:29:00]I (773) spi_flash: flash io: dio
[18:29:00]I (778) cpu_start: Starting scheduler on PRO CPU.
[18:29:00]I (0) cpu_start: Starting scheduler on APP CPU.

After I reset device, the logs append with the following:

[18:30:12][I][logger:156]: Log initialized
[C][safe_mode:079]: There have been 3 suspected unsuccessful boot attempts
[D][esp32.preferences:114]: Saving 1 preferences to flash...
[D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[I][app:029]: Running through setup()...
[C][esp32_rmt_led_strip:021]: Setting up ESP32 LED Strip...
[D][template.select:014]: Setting up Template Select
[D][template.select:023]: State from initial (could not load stored index): On device
[D][select:015]: 'Wake word engine location': Sending state On device (index 1)
[D][esp-idf:000]: I (260) gpio: GPIO[39]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 

[D][binary_sensor:034]: 'Button': Sending initial state OFF
[C][light:035]: Setting up light 'VoiceAssistant 226060'...
[D][light:036]: 'VoiceAssistant 226060' Setting:
[D][light:041]:   Color mode: RGB
[D][template.switch:046]:   Restored state ON
[D][switch:012]: 'Use listen light' Turning ON.
[D][switch:055]: 'Use listen light': Sending state ON
[D][light:036]: 'VoiceAssistant 226060' Setting:
[D][light:047]:   State: ON
[D][light:051]:   Brightness: 60%
[D][light:059]:   Red: 100%, Green: 89%, Blue: 71%
[C][i2s_audio:028]: Setting up I2S Audio...
[C][i2s_audio.microphone:018]: Setting up I2S Audio Microphone...
[C][wifi:048]: Setting up WiFi...
[D][esp-idf:000]: I (355) wifi:
[D][esp-idf:000]: wifi driver task: 3ffc7a38, prio:23, stack:6656, core=0
[D][esp-idf:000]: 

[D][esp-idf:000][wifi]: I (1507) system_api: Base MAC address is not set

[D][esp-idf:000][wifi]: I (1517) system_api: read default base MAC address from EFUSE

[D][esp-idf:000][wifi]: I (1520) wifi:
[D][esp-idf:000][wifi]: wifi firmware version: 1fd20f4
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (1537) wifi:
[D][esp-idf:000][wifi]: wifi certification version: v7.0
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (1558) wifi:
[D][esp-idf:000][wifi]: config NVS flash: enabled
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (1568) wifi:
[D][esp-idf:000][wifi]: config nano formating: disabled
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (1589) wifi:
[D][esp-idf:000][wifi]: Init data frame dynamic rx buffer num: 32
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (1609) wifi:
[D][esp-idf:000][wifi]: Init static rx mgmt buffer num: 5
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (1619) wifi:
[D][esp-idf:000][wifi]: Init management short buffer num: 32
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (1640) wifi:
[D][esp-idf:000][wifi]: Init dynamic tx buffer num: 32
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (1661) wifi:
[D][esp-idf:000][wifi]: Init static rx buffer size: 1600
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (1671) wifi:
[D][esp-idf:000][wifi]: Init static rx buffer num: 10
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (1691) wifi:
[D][esp-idf:000][wifi]: Init dynamic rx buffer num: 32
[D][esp-idf:000][wifi]: 

[D][esp-idf:000]: I (1712) wifi_init: rx ba win: 6

[D][esp-idf:000]: I (1713) wifi_init: tcpip mbox: 32

[D][esp-idf:000]: I (1722) wifi_init: udp mbox: 6

[D][esp-idf:000]: I (1722) wifi_init: tcp mbox: 6

[D][esp-idf:000]: I (1732) wifi_init: tcp tx win: 5760

[D][esp-idf:000]: I (1742) wifi_init: tcp rx win: 5760

[D][esp-idf:000]: I (1753) wifi_init: tcp mss: 1440

[D][esp-idf:000]: I (1753) wifi_init: WiFi IRAM OP enabled

[D][esp-idf:000]: I (1763) wifi_init: WiFi RX IRAM OP enabled

[C][wifi:061]: Starting WiFi...
[C][wifi:062]:   Local MAC: E8:6B:EA:22:60:60
[D][esp-idf:000][wifi]: I (1775) phy_init: phy_version 4791,2c4672b,Dec 20 2023,16:06:06

[D][esp-idf:000][wifi]: I (1868) wifi:
[D][esp-idf:000][wifi]: mode : sta (e8:6b:ea:22:60:60)
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (1870) wifi:
[D][esp-idf:000][wifi]: enable tsf
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (1874) wifi:
[D][esp-idf:000][wifi]: Set ps type: 1

[D][esp-idf:000][wifi]: 

[D][wifi:482]: Starting scan...
[D][esp32.preferences:114]: Saving 1 preferences to flash...
[D][esp32.preferences:143]: Saving 1 preferences to flash: 1 cached, 0 written, 0 failed
[D][esp-idf:000][wifi]: I (1915) wifi:
[D][esp-idf:000][wifi]: Set ps type: 1

[D][esp-idf:000][wifi]: 

[W][component:157]: Component wifi set Warning flag: scanning for networks
[W][micro_wake_word:151]: Wake word detection can't start as the component hasn't been setup yet
[D][wifi:497]: Found networks:
[I][wifi:541]: - [redacted] [redacted]▂▄▆█
[D][wifi:542]:     Channel: 13
[D][wifi:543]:     RSSI: -49 dB
[D][wifi:546]: - [redacted] [redacted]▂▄▆█
[D][wifi:546]: - [redacted] [redacted]▂▄▆█
[D][wifi:546]: - [redacted] [redacted]▂▄▆█
[D][wifi:546]: - [redacted] [redacted]▂▄▆█
[D][wifi:546]: - [redacted] [redacted]▂▄▆█
[D][wifi:546]: - [redacted] [redacted]▂▄▆█
[D][wifi:546]: - [redacted] [redacted]▂▄▆█
[D][wifi:546]: - [redacted] [redacted]▂▄▆█
[D][wifi:546]: - [redacted] [redacted]▂▄▆█
[D][wifi:546]: - [redacted] [redacted]▂▄▆█
[D][wifi:546]: - [redacted] [redacted]▂▄▆█
[D][wifi:546]: - [redacted] [redacted]▂▄▆█
[D][wifi:546]: - [redacted] [redacted]▂▄▆█
[D][wifi:546]: - [redacted] [redacted]▂▄▆█
[D][wifi:546]: - [redacted] [redacted]▂▄▆█
[I][wifi:313]: WiFi Connecting to [redacted]...
[D][esp-idf:000][wifi]: I (5269) wifi:
[D][esp-idf:000][wifi]: new:<13,0>, old:<1,0>, ap:<255,255>, sta:<13,0>, prof:1
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (5272) wifi:
[D][esp-idf:000][wifi]: state: init -> auth (b0)
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (6759) wifi:
[D][esp-idf:000][wifi]: state: auth -> assoc (0)
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (6770) wifi:
[D][esp-idf:000][wifi]: Association refused temporarily, comeback time 1000 (TUs)
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (7796) wifi:
[D][esp-idf:000][wifi]: state: assoc -> assoc (0)
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (8796) wifi:
[D][esp-idf:000][wifi]: state: assoc -> init (200)
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (8797) wifi:
[D][esp-idf:000][wifi]: new:<13,0>, old:<13,0>, ap:<255,255>, sta:<13,0>, prof:1
[D][esp-idf:000][wifi]: 

[W][wifi_esp32:705]: Event: Disconnected ssid=[redacted] bssid=[redacted] reason='Association Failed'
[W][wifi:653]: Error while connecting to network.
[D][wifi:697]: Retrying with hidden networks...
[I][wifi:313]: WiFi Connecting to [redacted]...
[D][esp-idf:000][wifi]: I (8852) wifi:
[D][esp-idf:000][wifi]: new:<13,0>, old:<13,0>, ap:<255,255>, sta:<13,0>, prof:1
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (8855) wifi:
[D][esp-idf:000][wifi]: state: init -> auth (b0)
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (10401) wifi:
[D][esp-idf:000][wifi]: state: auth -> assoc (0)
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (10416) wifi:
[D][esp-idf:000][wifi]: state: assoc -> run (10)
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (10464) wifi:
[D][esp-idf:000][wifi]: connected with [redacted], aid = 13, channel 13, BW20, bssid = 34:60:f9:8a:18:da
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (10465) wifi:
[D][esp-idf:000][wifi]: security: WPA3-SAE, phy: bgn, rssi: -49
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (10480) wifi:
[D][esp-idf:000][wifi]: pm start, type: 1

[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (10491) wifi:
[D][esp-idf:000][wifi]: AP's beacon interval = 102400 us, DTIM period = 1
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][wifi]: I (10521) wifi:
[D][esp-idf:000][wifi]: <ba-add>idx:0 (ifx:0, 34:60:f9:8a:18:da), tid:0, ssn:0, winSize:64
[D][esp-idf:000][wifi]: 

[D][esp-idf:000][sys_evt]: I (11515) esp_netif_handlers: sta ip: 192.168.1.102, mask: 255.255.255.0, gw: 192.168.1.1

[C][wifi:433]:   SSID: [redacted]
[C][wifi:436]:   IP Address: 192.168.1.102
[C][wifi:440]:   BSSID: [redacted]
[C][wifi:441]:   Hostname: 'voiceassistant-226060'
[C][wifi:443]:   Signal strength: -48 dB ▂▄▆█
[C][wifi:447]:   Channel: 13
[C][wifi:448]:   Subnet: 255.255.255.0
[C][wifi:449]:   Gateway: 192.168.1.1
[C][wifi:450]:   DNS1: 192.168.1.1
[C][wifi:451]:   DNS2: 0.0.0.0
[D][wifi:626]: Disabling AP...
[C][api:025]: Setting up Home Assistant API server...
[C][voice_assistant:072]: Setting up Voice Assistant...
[C][micro_wake_word:062]: Setting up microWakeWord...
[C][micro_wake_word:069]: Micro Wake Word initialized
[I][app:062]: setup() finished successfully!
[W][component:170]: Component wifi cleared Warning flag
[W][component:157]: Component api set Warning flag: unspecified
[I][app:100]: ESPHome version 2024.9.0 compiled on Sep 22 2024, 14:09:16
[I][app:102]: Project m5stack.atom-echo-wake-word-voice-assistant version 24.7.4.1
[C][wifi:600]: WiFi:
[C][wifi:428]:   Local MAC: E8:6B:EA:22:60:60
[C][wifi:433]:   SSID: [redacted]
[C][wifi:436]:   IP Address: 192.168.1.102
[C][wifi:440]:   BSSID: [redacted]
[C][wifi:441]:   Hostname: 'voiceassistant-226060'
[C][wifi:443]:   Signal strength: -48 dB ▂▄▆█
[C][wifi:447]:   Channel: 13
[C][wifi:448]:   Subnet: 255.255.255.0
[C][wifi:449]:   Gateway: 192.168.1.1
[C][wifi:450]:   DNS1: 192.168.1.1
[C][wifi:451]:   DNS2: 0.0.0.0
[C][logger:185]: Logger:
[C][logger:186]:   Level: DEBUG
[C][logger:188]:   Log Baud Rate: 115200
[C][logger:189]:   Hardware UART: UART0
[C][esp32_rmt_led_strip:187]: ESP32 RMT LED Strip:
[C][esp32_rmt_led_strip:188]:   Pin: 27
[C][esp32_rmt_led_strip:189]:   Channel: 0
[C][esp32_rmt_led_strip:214]:   RGB Order: GRB
[C][esp32_rmt_led_strip:215]:   Max refresh rate: 0
[C][esp32_rmt_led_strip:216]:   Number of LEDs: 1
[C][template.select:065]: Template Select 'Wake word engine location'
[C][template.select:066]:   Update Interval: 60.0s
[C][template.select:069]:   Optimistic: YES
[C][template.select:070]:   Initial Option: On device
[C][template.select:071]:   Restore Value: YES
[C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Button'
[C][gpio.binary_sensor:016]:   Pin: GPIO39
[C][light:103]: Light 'VoiceAssistant 226060'
[C][light:105]:   Default Transition Length: 0.0s
[C][light:106]:   Gamma Correct: 2.80
[C][template.switch:068]: Template Switch 'Use listen light'
[C][template.switch:091]:   Restore Mode: restore defaults to ON
[C][template.switch:057]:   Optimistic: YES
[C][factory_reset.button:011]: Factory Reset Button 'Factory reset'
[C][factory_reset.button:011]:   Icon: 'mdi:restart-alert'
[C][captive_portal:089]: Captive Portal:
[C][mdns:116]: mDNS:
[C][mdns:117]:   Hostname: voiceassistant-226060
[C][esphome.ota:073]: Over-The-Air updates:
[C][esphome.ota:074]:   Address: voiceassistant.local:3232
[C][esphome.ota:075]:   Version: 2
[C][esphome.ota:078]:   Password configured
[C][safe_mode:018]: Safe Mode:
[C][safe_mode:020]:   Boot considered successful after 60 seconds
[C][safe_mode:021]:   Invoke after 10 boot attempts
[C][safe_mode:023]:   Remain in safe mode for 300 seconds
[W][safe_mode:029]: Last reset occurred too quickly; safe mode will be invoked in 7 restarts
[C][api:139]: API Server:
[C][api:140]:   Address: voiceassistant.local:6053
[C][api:142]:   Using noise encryption: YES
[C][improv_serial:032]: Improv Serial:
[C][micro_wake_word:051]: microWakeWord:
[C][micro_wake_word:052]:   models:
[C][micro_wake_word:015]:     - Wake Word: alexa
[C][micro_wake_word:016]:       Probability cutoff: 0.900
[C][micro_wake_word:017]:       Sliding window size: 5
[C][micro_wake_word:021]:     - VAD Model
[C][micro_wake_word:022]:       Probability cutoff: 0.500
[C][micro_wake_word:023]:       Sliding window size: 5
[D][api:102]: Accepted 192.168.1.120
[W][component:170]: Component api cleared Warning flag
[W][component:237]: Component api took a long time for an operation (56 ms).
[W][component:238]: Components should block for at most 30 ms.
[D][api.connection:1442]: Home Assistant 2024.9.2 (192.168.1.120): Connected successfully
[D][ring_buffer:024]: Created ring buffer with size 2048
[D][micro_wake_word:399]: Resetting buffers and probabilities
[D][micro_wake_word:195]: State changed from IDLE to START_MICROPHONE
[W][component:237]: Component voice_assistant took a long time for an operation (59 ms).
[W][component:238]: Components should block for at most 30 ms.
[D][micro_wake_word:107]: Starting Microphone
[D][micro_wake_word:195]: State changed from START_MICROPHONE to STARTING_MICROPHONE
[D][esp-idf:000]: I (18111) I2S: DMA Malloc info, datalen=blocksize=1024, dma_buf_count=4

[D][micro_wake_word:195]: State changed from STARTING_MICROPHONE to DETECTING_WAKE_WORD
[D][switch:016]: 'Use listen light' Turning OFF.
[D][switch:055]: 'Use listen light': Sending state OFF
[D][light:036]: 'VoiceAssistant 226060' Setting:
[D][light:047]:   State: OFF
[D][switch:012]: 'Use listen light' Turning ON.
[D][switch:055]: 'Use listen light': Sending state ON
[D][light:036]: 'VoiceAssistant 226060' Setting:
[D][light:047]:   State: ON
[D][light:051]:   Brightness: 60%
[D][light:059]:   Red: 100%, Green: 89%, Blue: 71%
[D][micro_wake_word:162]: The 'alexa' model sliding average probability is 0.998 and most recent probability is 1.000
[D][micro_wake_word:123]: Wake Word 'alexa' Detected
[D][micro_wake_word:195]: State changed from DETECTING_WAKE_WORD to STOP_MICROPHONE
[D][micro_wake_word:129]: Stopping Microphone
[D][micro_wake_word:195]: State changed from STOP_MICROPHONE to STOPPING_MICROPHONE
[D][esp-idf:000]: I (53693) I2S: DMA queue destroyed

[D][micro_wake_word:195]: State changed from STOPPING_MICROPHONE to IDLE
[D][voice_assistant:514]: State changed from IDLE to START_MICROPHONE
[D][voice_assistant:520]: Desired state set to START_PIPELINE
[D][voice_assistant:226]: Starting Microphone
[D][ring_buffer:024]: Created ring buffer with size 16384
[D][voice_assistant:514]: State changed from START_MICROPHONE to STARTING_MICROPHONE
[D][esp-idf:000]: I (53745) I2S: DMA Malloc info, datalen=blocksize=1024, dma_buf_count=4

[D][voice_assistant:514]: State changed from STARTING_MICROPHONE to START_PIPELINE
[D][voice_assistant:280]: Requesting start...
[D][voice_assistant:514]: State changed from START_PIPELINE to STARTING_PIPELINE
[D][voice_assistant:535]: Client started, streaming microphone
[D][voice_assistant:514]: State changed from STARTING_PIPELINE to STREAMING_MICROPHONE
[D][voice_assistant:520]: Desired state set to STREAMING_MICROPHONE
[D][esp32.preferences:114]: Saving 1 preferences to flash...
[D][esp32.preferences:143]: Saving 1 preferences to flash: 1 cached, 0 written, 0 failed
[I][safe_mode:041]: Boot seems successful; resetting boot loop counter
[D][esp32.preferences:114]: Saving 1 preferences to flash...
[D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
ets Jun  8 2016 00:22:57
[18:30:12]
[18:30:12]rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[18:30:12]configsip: 188777542, SPIWP:0xee
[18:30:12]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[18:30:12]mode:DIO, clock div:2
[18:30:12]load:0x3fff0030,len:6652
[18:30:12]ho 0 tail 12 room 4
[18:30:12]load:0x40078000,len:15052
[18:30:12]load:0x40080400,len:3836
[18:30:12]entry 0x4008069c
[18:30:12]I (29) boot: ESP-IDF 4.4.7 2nd stage bootloader
[18:30:12]I (29) boot: compile time 14:14:13
[18:30:12]I (29) boot: Multicore bootloader
[18:30:12]I (32) boot: chip revision: v1.1
[18:30:12]I (36) boot.esp32: SPI Speed      : 40MHz
[18:30:12]I (41) boot.esp32: SPI Mode       : DIO
[18:30:12]I (46) boot.esp32: SPI Flash Size : 4MB
[18:30:12]I (50) boot: Enabling RNG early entropy source...
[18:30:12]I (56) boot: Partition Table:
[18:30:12]I (59) boot: ## Label            Usage          Type ST Offset   Length
[18:30:12]I (66) boot:  0 otadata          OTA data         01 00 00009000 00002000
[18:30:12]I (74) boot:  1 phy_init         RF data          01 01 0000b000 00001000
[18:30:12]I (81) boot:  2 app0             OTA app          00 10 00010000 001c0000
[18:30:12]I (89) boot:  3 app1             OTA app          00 11 001d0000 001c0000
[18:30:12]I (96) boot:  4 nvs              WiFi data        01 02 00390000 0006d000
[18:30:12]I (104) boot: End of partition table
[18:30:12]I (108) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=52e1ch (339484) map
[18:30:12]I (239) esp_image: segment 1: paddr=00062e44 vaddr=3ffb0000 size=033fch ( 13308) load
[18:30:12]I (245) esp_image: segment 2: paddr=00066248 vaddr=40080000 size=09dd0h ( 40400) load
[18:30:12]I (262) esp_image: segment 3: paddr=00070020 vaddr=400d0020 size=f3858h (997464) map
[18:30:12]I (623) esp_image: segment 4: paddr=00163880 vaddr=40089dd0 size=0bde0h ( 48608) load
[18:30:12]I (654) boot: Loaded app from partition at offset 0x10000
[18:30:12]I (654) boot: Disabling RNG early entropy source...
[18:30:12]I (665) cpu_start: Multicore app
[18:30:12]I (665) cpu_start: Pro cpu up.
[18:30:12]I (666) cpu_start: Starting app cpu, entry point is 0x40082628
[18:30:12]I (0) cpu_start: App cpu up.
[18:30:12]I (683) cpu_start: Pro cpu start user code
[18:30:12]I (684) cpu_start: cpu freq: 160000000
[18:30:12]I (684) cpu_start: Application information:
[18:30:12]I (688) cpu_start: Project name:     voiceassistant
[18:30:12]I (694) cpu_start: App version:      2024.9.0
[18:30:12]I (699) cpu_start: Compile time:     Sep 22 2024 14:09:17
[18:30:12]I (705) cpu_start: ELF file SHA256:  7fcbdd7ff7460a4a...
[18:30:12]I (711) cpu_start: ESP-IDF:          4.4.7
[18:30:12]I (715) cpu_start: Min chip rev:     v0.0
[18:30:12]I (720) cpu_start: Max chip rev:     v3.99 
[18:30:12]I (725) cpu_start: Chip rev:         v1.1
[18:30:12]I (730) heap_init: Initializing. RAM available for dynamic allocation:
[18:30:12]I (737) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
[18:30:12]I (743) heap_init: At 3FFB86F8 len 00027908 (158 KiB): DRAM
[18:30:12]I (749) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
[18:30:12]I (756) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
[18:30:12]I (762) heap_init: At 40095BB0 len 0000A450 (41 KiB): IRAM
[18:30:12]I (770) spi_flash: detected chip: gd
[18:30:12]I (773) spi_flash: flash io: dio
[18:30:12]I (778) cpu_start: Starting scheduler on PRO CPU.
[18:30:12]I (0) cpu_start: Starting scheduler on APP CPU.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants