This is my configuration. It’s very simple.
I want to do some small tests.
But I have a problem.
I can’t start the conversation no matter which key I use.
The original configuration is too long and difficult to understand.
So I simplified it
i2s_audio:
- id: i2s_output
# i2s_output data pin is gpio7
i2s_lrclk_pin:
number: GPIO16
i2s_bclk_pin:
number: GPIO15
- id: i2s_input
# data line is GPIO6
i2s_lrclk_pin:
number: GPIO4
i2s_bclk_pin:
number: GPIO5
microphone:
- platform: i2s_audio
id: i2s_mics
i2s_din_pin: GPIO6
adc_type: external
# pdm: false
# sample_rate: 16000
bits_per_sample: 32bit
# i2s_mode: primary
i2s_audio_id: i2s_input
# channel: left
speaker:
# Hardware speaker output
- platform: i2s_audio
id: i2s_audio_speaker
i2s_audio_id: i2s_output
dac_type: external
i2s_dout_pin: 7
sample_rate: 48000
buffer_duration: 100ms
media_player:
- platform: speaker
id: external_media_player
name: None
internal: False
volume_min: 0.4
volume_max: 0.85
volume_increment: 0.15
announcement_pipeline:
speaker: i2s_audio_speaker
format: FLAC # FLAC is the least processor intensive codec
num_channels: 1 # Stereo audio is unnecessary for announcements
sample_rate: 48000
micro_wake_word:
id: mww
stop_after_detection: false
microphone:
microphone: i2s_mics
channels: 0
gain_factor: 4
models:
- model: https://github.com/kahrendt/microWakeWord/releases/download/okay_nabu_20241226.3/okay_nabu.json
# probability_cutoff: 0.8
id: okay_nabu
vad:
probability_cutoff: 0.05
voice_assistant:
id: va
microphone:
microphone: i2s_mics
# channels: 0
# gain_factor: 4
media_player: external_media_player
# micro_wake_word: mww
use_wake_word: True
noise_suppression_level: 0
auto_gain: 0 dbfs
volume_multiplier: 1
button:
- platform: template
name: "start"
on_press:
- voice_assistant.start:
- platform: template
name: "stop"
on_press:
- voice_assistant.stop:
- platform: template
name: "starting"
on_press:
- voice_assistant.start_continuous:
The configuration source is
https://community.home-assistant.io/t/voice-assistant-esphome-with-esp32-s3-max98357-inmp441/892145