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

YAML Configuration for dual I2S busses targetting the new hardware revision #67

Merged
merged 2 commits into from
Aug 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 11 additions & 36 deletions voice-kit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ binary_sensor:
- platform: gpio
id: center_button
pin:
number: GPIO17
number: GPIO0
inverted: true
on_press:
- script.execute: control_leds
Expand Down Expand Up @@ -1032,69 +1032,44 @@ script:
- delay: 1s

i2s_audio:
- id: i2s_input
- id: i2s_output
i2s_lrclk_pin:
number: GPIO7
allow_other_uses: true
i2s_bclk_pin:
number: GPIO8
allow_other_uses: true
i2s_mclk_pin:
number: GPIO9
allow_other_uses: true
i2s_mode: secondary
# i2s_output data pin is gpio10

- id: i2s_output
- id: i2s_input
i2s_lrclk_pin:
number: GPIO7
allow_other_uses: true
number: GPIO14
i2s_bclk_pin:
number: GPIO8
allow_other_uses: true
i2s_mclk_pin:
number: GPIO9
allow_other_uses: true
number: GPIO13
i2s_mode: secondary
# i2s_output data pin is gpio10

# yamllint disable rule:comments-indentation
# This describes the second I2S interface between ESP32 and XMOS chip. Currently unused.
# - id: i2s_output
# i2s_lrclk_pin:
# number: GPIO14
# # allow_other_uses: true
# i2s_bclk_pin:
# number: GPIO13
# # allow_other_uses: true
# i2s_mclk_pin:
# number: GPIO12
# # allow_other_uses: true
# i2s_mode: primary #secondary
# data line is GPIO15
# yamllint enable rule:comments-indentation
# data line is GPIO15

microphone:
- platform: nabu_microphone
i2s_din_pin: GPIO11
i2s_din_pin: GPIO15
adc_type: external
pdm: false
sample_rate: 16000 # use 48000 for beta firmware
sample_rate: 16000
bits_per_sample: 32bit
i2s_audio_id: i2s_input
channel_1:
id: asr_mic
amplify: false
channel_2:
id: comm_mic
amplify: false # should be true for firmware with two different streams
amplify: false # May be useful to enable, but may also result in worse wake word detection if speaking close to the device

media_player:
- platform: nabu
id: nabu_media_player
name: Media Player
internal: false
audio_dac:
sample_rate: 16000 # use 48000 for beta firmware
sample_rate: 48000
i2s_dout_pin: GPIO10
bits_per_sample: 32bit
i2s_audio_id: i2s_output
Expand Down