#ESPHome satellite blocking pipeline

1 messages · Page 1 of 1 (latest)

lean parcel
#

Please paste your ESPHome config cand follow the device logs in ESPHome to see if anything unusual pops up

jaunty jacinth
#

ive made some progress yesterday night. ive desoldered the mic and tested the speaker again. came to the conclusion that that mic was broken. i found out i could use a second i2s bus so i did with another mic. here is my (copied from github) config

#
  name: assist-test
  friendly_name: assist-test

esp32:
  board: esp32dev
  framework:
    type: arduino
    #version: recommended

# Enable logging
logger:
api:
  encryption:
    key: 

ota:
  password: 

captive_portal:

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  fast_connect: True

i2s_audio:
  - id: i2s_out
    i2s_lrclk_pin: GPIO27   #WS / LRC
    i2s_bclk_pin: GPIO26    #SCK /BCLK
  - id: i2s_in
    i2s_lrclk_pin: GPIO22   #WS / LRC
    i2s_bclk_pin: GPIO23   #SCK /BCLK

microphone:
  - platform: i2s_audio
    adc_type: external
    pdm: false
    id: mic_i2s
    channel: left
    bits_per_sample: 32bit
    i2s_audio_id: i2s_in
    i2s_din_pin: GPIO21    #SD

speaker:
  - platform: i2s_audio
    id: my_speaker
    dac_type: external
    i2s_dout_pin: GPIO25   #DIN 
    mode: mono
    i2s_audio_id: i2s_out

voice_assistant:
  microphone: mic_i2s
  id: va
  noise_suppression_level: 2
  auto_gain: 31dBFS
  volume_multiplier: 2.0
  use_wake_word: true
  speaker: my_speaker
  on_error: 
   - if:
        condition:
          switch.is_on: use_wake_word
        then:
          - switch.turn_off: use_wake_word
          - switch.turn_on: use_wake_word      

  on_client_connected:
    - if:
        condition:
          switch.is_on: use_wake_word
        then:
          - voice_assistant.start_continuous:

  on_client_disconnected:
    - if:
        condition:
          switch.is_on: use_wake_word
        then:
          - voice_assistant.stop:

switch:
  - platform: template
    name: Use wake word
    id: use_wake_word
    optimistic: true
    restore_mode: RESTORE_DEFAULT_ON
    entity_category: config
    on_turn_on:
      - lambda: id(va).set_use_wake_word(true);
      - if:
          condition:
            not:
              - voice_assistant.is_running
          then:
            - voice_assistant.start_continuous
    
    on_turn_off:
      - voice_assistant.stop
      - lambda: id(va).set_use_wake_word(false);```
#

ive removed the password and keys

#

here are the logs [13:33:28][D][voice_assistant:529]: Event Type: 0 [13:33:28][D][voice_assistant:529]: Event Type: 2 [13:33:28][D][voice_assistant:619]: Assist Pipeline ended [13:33:28][D][voice_assistant:422]: State changed from STREAMING_MICROPHONE to IDLE [13:33:28][D][voice_assistant:428]: Desired state set to IDLE [13:33:28][D][voice_assistant:422]: State changed from IDLE to START_PIPELINE [13:33:28][D][voice_assistant:428]: Desired state set to START_MICROPHONE [13:33:28][D][voice_assistant:206]: Requesting start... [13:33:28][D][voice_assistant:422]: State changed from START_PIPELINE to STARTING_PIPELINE [13:33:28][D][voice_assistant:443]: Client started, streaming microphone [13:33:28][D][voice_assistant:422]: State changed from STARTING_PIPELINE to STREAMING_MICROPHONE [13:33:28][D][voice_assistant:428]: Desired state set to STREAMING_MICROPHONE [13:33:28][D][voice_assistant:529]: Event Type: 1 [13:33:28][D][voice_assistant:532]: Assist Pipeline running [13:33:28][D][voice_assistant:529]: Event Type: 9 [13:33:33][D][voice_assistant:529]: Event Type: 0 [13:33:33][D][voice_assistant:529]: Event Type: 2 [13:33:33][D][voice_assistant:619]: Assist Pipeline ended [13:33:33][D][voice_assistant:422]: State changed from STREAMING_MICROPHONE to IDLE [13:33:33][D][voice_assistant:428]: Desired state set to IDLE [13:33:33][D][voice_assistant:422]: State changed from IDLE to START_PIPELINE [13:33:33][D][voice_assistant:428]: Desired state set to START_MICROPHONE [13:33:33][D][voice_assistant:206]: Requesting start... [13:33:33][D][voice_assistant:422]: State changed from START_PIPELINE to STARTING_PIPELINE [13:33:33][D][voice_assistant:443]: Client started, streaming microphone [D][voice_assistant:422]: State changed from STARTING_PIPELINE to STREAMING_MICROPHONE [D][voice_assistant:428]: Desired state set to STREAMING_MICROPHONE [D][voice_assistant:529]: Event Type: 1 [D][voice_assistant:532]: Assist Pipeline running [D][voice_assistant:529]: Event Type: 9

#

i removed the last few timestamps so that i could send it

#

it worked a few times yesterday, until it crashed. something about speaker buffer was in the logs. a reboot wouldnt fix it

#

btw the chips used are the wroom-32, imnp441 mic, and the recommended amp forgot the name.