ES8156
The es8156 platform allows your ESPHome devices to use the ES8156 low power mono audio codec.
This allows the playback of audio via the microcontroller from a range of sources via Speaker or
Media Player.
The I²C bus is required in your configuration as this is used to communicate with the ES8156.
# Example configuration entryaudio_dac: - platform: es8156Configuration variables
Section titled “Configuration variables”- address (Optional, int): The I²C address of the driver. Defaults to
0x18. - i2c_id (Optional): The ID of the I²C bus the ES8156 is connected to.
- All other options from Audio DAC.
Automations
Section titled “Automations”All Audio DAC Automations are supported by this platform.
Configuration Examples
Section titled “Configuration Examples”ESP32 S3 Box 3 Lite:
audio_dac: - platform: es8156 id: es8156_dac
i2s_audio: - id: i2s_output i2s_lrclk_pin: GPIO47 i2s_bclk_pin: GPIO17 i2s_mclk_pin: GPIO2
speaker: - platform: i2s_audio i2s_audio_id: i2s_output id: speaker_id i2s_dout_pin: GPIO15 dac_type: external sample_rate: 16000 bits_per_sample: 16bit channel: stereo audio_dac: es8156_dac
switch: - platform: gpio name: "Speaker Enable" pin: GPIO46 restore_mode: RESTORE_DEFAULT_ON