922
Hello everyone, I’m new to this forum and may not be fully up to date on all the rules.
I’m trying to create a media player that can play sounds and TTS from HA. Unfortunately, I can’t get any sound out of the media player.
I’ve spent many hours on it but can’t get it to work.
This is what I have:
-) Home Assistant (2026.1.3.) running on an HP ThinClient.
-) Hardware media player Ai-Thinker ESP32-Audio-Kit V2.2 A520 (ESP32-A1S, ES8388 codec, and 2x NS4150 amplifier chips)
-) I flashed a basic configuration onto the ESP32-Audio-Kit.
-) I integrated the media player into HA via ESPhome and connected to the media player via Wi-Fi.
-) When I play an audio file, I see a small red LED flashing on the ESP32 Audio Kit and I hear some slight hiss coming from the speaker.
Unfortunately, I have no sound.
This is the YAML code I used for flashing:
esphome:
name: esp32-a1s
friendly_name: "ESP32-A1S Media"
esp32:
board: esp32dev
framework:
type: arduino
wifi:
ssid: "SSID"
password: "password"
logger:
api:
ota:
platform: esphome
# I2C voor ES8388
i2c:
sda: 33
scl: 32
scan: true
# ES8388 codec (alleen init, geen koppeling nodig)
audio_dac:
- platform: es8388
# I2S bus
i2s_audio:
- id: audio_bus
i2s_lrclk_pin: 26
i2s_bclk_pin: 27
i2s_mclk_pin: 0 # waarschuwing is normaal
media_player:
- platform: i2s_audio
name: "ESP32-A1S Player"
i2s_audio_id: audio_bus
dac_type: external
i2s_dout_pin: 22
mode: stereo
# NS4150 versterker aan
switch:
- platform: gpio
pin: 21
name: "AMP Enable"
restore_mode: ALWAYS_ON
Does anyone know how I could fix this?