Hello,
Does anyone have experience using the ESP32-LyraT-Mini from Espressif? I have recently purchased a couple, as the larger stereo version is out of stock.
This is my first ESPHome project, so I am a little overwhelmed. I have so far successfully connected the board and also gotten the onboard LEDs to work. But I cannot get the microphone to work. The board has an ES8311 codec for output and an ES7243 ADC for input.
substitutions:
name: esphome-web-4d5374
friendly_name: Jarvis Living Room
esphome:
name: ${name}
friendly_name: ${friendly_name}
name_add_mac_suffix: false
project:
name: esphome.web
version: '1.0'
esp32:
board: esp-wrover-kit
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
# Allow Over-The-Air updates
ota:
# Allow provisioning Wi-Fi via serial
improv_serial:
wifi:
ssid:
password:
use_address:
manual_ip:
static_ip:
gateway:
subnet: 255.255.255.0
# Set up a wifi access point
ap: {}
# In combination with the `ap` this allows the user
# to provision wifi credentials to the device via WiFi AP.
captive_portal:
# To have a "next url" for improv serial
web_server:
external_components:
- source: github://rpatel3001/esphome@es8311
components: [ es8311 ]
i2c:
sda: GPIO18
scl: GPIO23
es8311:
i2s_audio:
i2s_lrclk_pin: GPIO25
i2s_bclk_pin: GPIO5
switch:
- platform: gpio
pin: GPIO21
name: "Speaker Switch"
id: amp_switch
restore_mode: ALWAYS_ON
- platform: gpio
pin: GPIO27
name: "LED"
id: LED
restore_mode: RESTORE_DEFAULT_OFF
- platform: template
name: Use wake word
id: use_wake_word
optimistic: true
restore_mode: RESTORE_DEFAULT_OFF
entity_category: config
on_turn_on:
- if:
condition:
not:
- voice_assistant.is_running
then:
- voice_assistant.start_continuous
on_turn_off:
- voice_assistant.stop
microphone:
- platform: i2s_audio
id: mic
adc_type: external
i2s_din_pin: GPIO35
pdm: False
channel: left
media_player:
- platform: i2s_audio
name: speaker
id: media_player_speaker
dac_type: external
i2s_dout_pin: GPIO26
mode: mono
voice_assistant:
microphone: mic
use_wake_word: true
noise_suppression_level: 2
auto_gain: 31dBFS
media_player: media_player_speaker
id: assist