mirror of
https://github.com/esphome/esphome.git
synced 2026-06-24 13:43:00 +00:00
[api][voice_assistant] Add second audio channel for voice_assistant (#16265)
Co-authored-by: Kevin Ahrendt <kevin.ahrendt@openhomefoundation.org> Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
@@ -31,6 +31,11 @@ microphone:
|
||||
i2s_din_pin: ${i2s_din_pin}
|
||||
adc_type: external
|
||||
pdm: false
|
||||
- platform: i2s_audio
|
||||
id: mic_id_external2
|
||||
i2s_din_pin: ${i2s_din_pin2}
|
||||
adc_type: external
|
||||
pdm: false
|
||||
|
||||
speaker:
|
||||
- platform: i2s_audio
|
||||
@@ -40,9 +45,12 @@ speaker:
|
||||
|
||||
voice_assistant:
|
||||
microphone:
|
||||
microphone: mic_id_external
|
||||
gain_factor: 4
|
||||
channels: 0
|
||||
- microphone: mic_id_external
|
||||
gain_factor: 4
|
||||
channels: 0
|
||||
- microphone: mic_id_external2
|
||||
gain_factor: 4
|
||||
channels: 0
|
||||
speaker: speaker_id
|
||||
micro_wake_word: mww_id
|
||||
conversation_timeout: 60s
|
||||
|
||||
@@ -3,6 +3,7 @@ substitutions:
|
||||
i2s_bclk_pin: GPIO5
|
||||
i2s_mclk_pin: GPIO15
|
||||
i2s_din_pin: GPIO13
|
||||
i2s_din_pin2: GPIO14
|
||||
i2s_dout_pin: GPIO12
|
||||
|
||||
<<: !include common-idf.yaml
|
||||
|
||||
Reference in New Issue
Block a user