本教程介绍如何将 Echo Pyramid 语音底座集成至 Home Assistant。
CONTINUE。
New Device Setup。
NEXT。
ESP32-S3。
SKIP 跳过。
EDIT,通过 YAML 文件来自定义设备功能。
下面是配置中的核心部分,后文会给出相关参考链接和说明。
添加 PSRAM 组件:
psram:
mode: octal
speed: 80MHz 添加 External 外部组件:
external_components:
- source: github://m5stack/esphome-yaml/components
components: [aw87559, si5351, lp5562, pyramidrgb, pyramidtouch]
refresh: 0s 添加 I2C 组件:
i2c:
- id: bsp_bus
sda: GPIO45
scl: GPIO0
scan: true
- id: ext_bus # 用于 Atomic Echo 底座
sda: GPIO38
scl: GPIO39 添加 I2S Audio 组件:
i2s_audio:
- id: i2s_audio_bus
i2s_lrclk_pin: GPIO8
i2s_bclk_pin: GPIO6 添加 Audio DAC 组件:
audio_dac:
- platform: es8311
id: es8311_dac
i2c_id: ext_bus
bits_per_sample: 16bit
sample_rate: 16000 添加 Audio ADC 组件:
audio_adc:
- platform: es7210
id: es7210_adc
i2c_id: ext_bus
address: 0x40
bits_per_sample: 16bit
sample_rate: 16000 添加 Microphone 组件:
microphone:
- platform: i2s_audio
id: i2s_mic
sample_rate: 16000
i2s_din_pin: GPIO5
bits_per_sample: 16bit
adc_type: external
channel: stereo 添加 Speaker 组件:
speaker:
- platform: i2s_audio
id: i2s_speaker
i2s_dout_pin: GPIO7
dac_type: external
bits_per_sample: 16bit
sample_rate: 16000
channel: mono
audio_dac: es8311_dac SAVE 和 INSTALL,在弹出的窗口中选择 Manual Download。
Factory format(Previously Modern)。
CONNECT 连接设备。
INSTALL。
Settings -> Device & services 检查设备。
Discover 区域中发现对应的设备。
最终,用户可以通过控制面板配置 Echo Pyramid 上各类可控硬件,并配合自定义唤醒词 (Echo-Pyramid Wake Word) 来激活设备,实现如查询天气、时间和日期等智能语音交互功能。