Getting started using an esp32 connected to an external speaker as media player / notifier

I’d like to use a D1 mini (connected to an external speaker with a jack cable) as a media player. The whole idea is to use it to read notifications sent from Home Assistant.

The jack cable (mono) is connected to the RX and GND pins:

This where my struggles start.

I found a number of ESPHome components that can probably be used:

Which one would be the correct one to use?
How do I specify which pins to use ?

Thanks in advance for your help.

You will soon find out that esp8266 doesn’t have DAC or I2S.

Get Esp32 (like your title says) and MAX98357A.

There is this project: Turn an ESP8266 WemosD1Mini into an audio notifier for Home Assistant: Play MP3, TTS & RTTL

Thanks @tom_l, this is the post I originally followed. Since I was not comfortable with the idea of uploading a binary I had no view upon, I was looking to achieve the same thing with esphome…

The full source is available here: esp8266_mrdiy_mqtt_local_notifier.ino · master · MrDIY / MrDIY Audio Notifier · GitLab

my bad… sorry about that.

Have you built this yet?

I read your comments a couple months ago and decided to do the same thing.

Sonocotta makes several ESP32 boards (and full products - like a wireless streaming amp for existing speakers, if you prefer not to build yourself)

https://sonocotta.com/louder-esp32/

Check out the “Louder” and derivatives. Andriy has a flowchart to help you decide which one you need based on your usage requirements. His ESParagus line are ready built amplifiers.

FYI, I finished building a wireless speaker last week and his ESP32 board made it easy to integrate with Home Assistant. Apologies for the shameless plug, I’m exploring the idea of selling them. 3DAudioSpeakers.com