initial commit
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
# ===== I2S Audio =====
|
||||
i2s_audio:
|
||||
- id: i2s_in
|
||||
i2s_lrclk_pin: ${i2s_in_lrclk_pin}
|
||||
i2s_bclk_pin: ${i2s_in_bclk_pin}
|
||||
- id: i2s_out
|
||||
i2s_lrclk_pin: ${i2s_out_lrclk_pin}
|
||||
i2s_bclk_pin: ${i2s_out_bclk_pin}
|
||||
|
||||
microphone:
|
||||
- platform: i2s_audio
|
||||
id: mic
|
||||
i2s_audio_id: i2s_in
|
||||
i2s_din_pin: ${mic_din_pin}
|
||||
adc_type: external
|
||||
pdm: false
|
||||
bits_per_sample: 32bit
|
||||
channel: left
|
||||
|
||||
speaker:
|
||||
- platform: i2s_audio
|
||||
id: spk
|
||||
i2s_audio_id: i2s_out
|
||||
i2s_dout_pin: ${speaker_dout_pin}
|
||||
dac_type: external
|
||||
bits_per_sample: 32bit
|
||||
channel: mono
|
||||
sample_rate: 16000
|
||||
# Voice Assistant needs the speaker to fully stop after playback so it can
|
||||
# leave RESPONSE_FINISHED and return to IDLE for the next wake word.
|
||||
timeout: 500ms
|
||||
|
||||
rtttl:
|
||||
id: volume_beep
|
||||
speaker: spk
|
||||
|
||||
# ===== Wake Word =====
|
||||
micro_wake_word:
|
||||
id: mww
|
||||
microphone: mic
|
||||
models:
|
||||
- model: okay_nabu
|
||||
id: wake_word_model
|
||||
on_wake_word_detected:
|
||||
- voice_assistant.start:
|
||||
wake_word: !lambda return wake_word;
|
||||
- light.turn_on:
|
||||
id: led_bar
|
||||
effect: "Listening Pulse"
|
||||
Reference in New Issue
Block a user