ESP32 Smart Speaker

Status 2026-12-02: ordered, still not on the desk. Two research passes are in: the firmware side against documentation and source, the hardware side against the schematic of the board's twin. Sources at the end; anything that holds for the design but has not been read off my own unit is marked unverified.

The board

A diymore ESP32-S3 "Smart Speaker" dev board – about 29 €, ASIN B0H39576N3.

It is not an ESP32-S3-Box clone. The PCB is a Waveshare ESP32-S3-AUDIO-Board (schematic V1.1) under another brand: the diymore bullet points are a translation round-trip of Waveshare's own text, and the one real board photo in the listing shows the identical outline and component placement – only black mask and a DIYMORE silkscreen instead of the green ESP32-S3-AUDIO-Board V1.1. The same design also appears as "Wonrabai" (B0FPCNZS9M) and under Waveshare's own ASINs. diymore publishes no reachable documentation; the authoritative one is Waveshare's.

That is the good news: a schematic exists for this board, so the pinout is not guesswork.

What is on it, per the schematic (confirmed for the design, still to be read off my unit):

  • ES8311 audio codec (I²S, I²C address 0x18) as the DAC side and ES7210 (4-channel microphone ADC, 0x40) as the ADC side – precisely the two chips ESPHome has drivers for.
  • NS4150B class-D mono amplifier with the speaker on a 2-pin GH1.25 connector. No line-out or headphone jack is documented or visible in the photo.
  • Two microphone capsules on the ES7210's MIC1/MIC2, and MIC3 is a loop-back of the speaker output – the echo-cancellation reference; MIC4 unused. (Waveshare and diymore say "digital microphone array"; the schematic shows analog-coupled capsules behind DC-blocking capacitors. Firmware-wise it does not matter: the ES7210 presents I2S/TDM.)
  • RGB ring 7× WS2812 on GPIO38, TF slot, PCF85063 RTC, battery charge stage – the last three unconfirmed for the diymore variant.
  • Memory: ESP32-S3R8, i.e. 8 MB PSRAM (octal, in-package) – the listing itself states the module. Flash is 16 MB (W25Q128) per the twin's schematic, not stated on the diymore page. Either way there is plenty for the decoders and buffers below. Note GPIO33–37 are consumed by the octal PSRAM and cannot be used.
  • Shared I²S: MCLK GPIO12, BCLK GPIO13, LRCK GPIO14, data to the DAC on GPIO15, from the ADC on GPIO16. I²C: SDA GPIO11, SCL GPIO10 (swapped in many copied community configs). Plus a TCA9555 port expander at 0x20 carrying the amplifier enable (PA_CTRL, EXIO8), the three buttons, LCD reset, camera power and SD select.
  • Display: none fitted – an 18-pin FPC socket plus a 2×8 header for SPI LCDs (Waveshare names 1.47″/2″/2.8″/3.5″). Camera: 24-pin DVP FPC, OV2640/OV5640.

Product page: https://www.amazon.de/dp/B0H39576N3 · reference docs: https://docs.waveshare.com/ESP32-S3-AUDIO-Board

Two possible lives

One firmware at a time, reflashing is one USB cable each way:

  1. Audio receiver. airplay-esp32 is a real AirPlay 2 receiver for ESP32/S3 – ALAC and AAC, browser-based flashing, no cloud and no app. The board then shows up in Control Center like a HomePod; the same firmware can also be a Music Assistant multiroom zone (Sendspin, below).
  2. Voice satellite. ESPHome's voice-assistant firmware: wake word runs on the board, microphone and speaker live in the room, while speech-to-text, the LLM and text-to-speech stay on my own server. That makes the room conversational for Music Assistant and the Home Assistant voice pipeline – and provides a microphone where no device has one at all.

Interestingly this is the fully-open parallel to the LibreEcho path: same goal – a smart speaker without a cloud account – but instead of reflashing used Echo hardware, here every part is off-the-shelf and open from the start.

Interface reality check (as of 2026-12-02)

Idea Works? Why
Bluetooth audio receiver no The ESP32-S3 only has Bluetooth LE – no classic Bluetooth, and A2DP (what phones pair as "speaker") requires it. BLE remains config-only.
AirPlay 2 receiver yes via the airplay-esp32 project below
Music Assistant multiroom zone yes the same airplay-esp32 build can be a Sendspin player – it needs PSRAM, which this board has
Existing powered speaker with line-in no, not as-is The board has no line-out – only the speaker connector behind the NS4150B amplifier (speaker level, not line level). An extra DAC (PCM5102A, ~3 €) on the I²S bus is possible but that bus is occupied by the on-board codec. More practical: a passive speaker on the board's amplifier, or a second ESP32-S3 with a PCM5102A as the line-in zone.
Passive speaker straight on the board yes NS4150B class-D stage, 2-pin GH1.25 connector; the stage is enabled through the TCA9555
Raspberry Pi camera module on the camera header no Pi cams speak MIPI CSI-2 on a 15-pin ribbon; this header is parallel DVP, 24-pin. Incompatible. What fits: OV2640/OV5640 DVP modules (~5 €).
Adding a display yes 18-pin FPC plus a 2×8 header for SPI LCDs; the controller comes with the panel, none sits on the board
Echo cancellation while speaking yes, in hardware MIC3 on the ES7210 is the loop-back to the speaker path – the reference ESPHome/HA need for AEC

Firmware reality check (checked against documentation and source, 2026-12-02)

Researched on 2026-12-02 against the airplay-esp32 documentation and its Kconfig/source state, the ESPHome docs (2026.11.2), the official ESPHome example configurations and the Waveshare V1.1 schematic.

airplay-esp32: the right codec driver exists, the board preset does not

The firmware selects its audio output through Kconfig: TI TAS57xx, TI TAS58xx, ESS ES8311, ESS ES8388 and TI PCM512x. This board's ES8311 is supported. What does not exist is a preset board for this design. The presets are SqueezeAMP, the Esparagus family, HiFi/Amped/Loud/Louder, two other Waveshare boards, the Seeed XIAO ESP32-C5 and the generic ESP32-S3 with an external PCM5102A.

A board preset is a directory components/boards/<name>/ with board.c and iot_board.h; that board code registers the codec at runtime through dac_register(). The documented route for third-party hardware is the custom-board path:

  • a user_platformio.ini with an environment of its own that chains config/sdkconfig.defaults, config/sdkconfig.defaults.esp32s3 and config/sdkconfig.user.<board>;
  • pins, codec selection and display settings in config/sdkconfig.user.<board>;
  • sdkconfig defaults apply left to right, so the own file goes last – and after any change to the defaults the cached sdkconfig.<env> has to be deleted, otherwise the build silently keeps the old values.

Two things set this board apart from the reference builds and have no matching component in airplay-esp32:

  • PA_CTRL sits on the TCA9555 (EXIO8, active high), not on a GPIO. Without setting that port over I²C the amplifier stays mute – even with codec and I²S working perfectly. The board file has to configure the expander at address 0x20 itself.
  • No line-out: the output chain is ES8311 → NS4150B → speaker terminals. Anyone who wants to keep using powered speakers with line-in needs a different sender for those.
Item State
Flashing Browser installer, or pio run -e <env> -t upload plus -t uploadfs – the second step writes the web UI to SPIFFS; without it there is no configuration UI at all
Bluetooth The S3 build contains no Bluetooth whatsoever; A2DP exists only on classic-ESP32 boards
Volume With ES8311 the codec handles volume (DAC_CONTROLS_VOLUME). AirPlay 0 dB maps onto the codec range through ES8311_MAX_VOLUME (default −60 dB, range 0…−95.5); the amplifier stage adds no volume control of its own
Microphone airplay-esp32 has no audio-ADC component – the microphone array stays unused on this path
Licensing GPL-3.0-or-later; builds against Espressif's binary audio components (notably esp_audio_codec) plus a clean-room reimplementation

And one finding that changes the plan: the same firmware can also be a Sendspin player – the open multiroom protocol Home Assistant's Music Assistant uses to synchronise its zones. Transport encrypted (Noise, PIN or token pairing), clock-synchronised against the server, PCM and FLAC everywhere, Opus on the ESP32-S3. Switched off by default, enabled on the Speaker page of the web UI, and it needs PSRAM – present here. AirPlay and Sendspin share the output and the volume, but AirPlay wins on conflict – a phone can always take the speaker back. In short: one firmware, two systems.

When adding it in Music Assistant: give the address explicitly as <ip>:80 (a bare host is assumed to sit on Sendspin's default port and will not connect), then approve the device – until then connections arrive with an empty activity set, i.e. no audio.

ESPHome: community work already exists for this board

ESPHome offers a ready-made firmware for the ESP32-S3-Box (ready-made projects, variants BOX-3, BOX, BOX-Lite). This board is not a Box, so two other finds matter more:

  • pschatzmann's AudioTools gained support for exactly this board; the post also names the main stumbling block: the TCA9555, without whose initialisation there is "no DAC output, no working SD drive and no user keys".
  • MichalZaniewicz/esphome-waveshare-esp32-s3-audio-va – an ESPHome voice assistant for this board, with docs/HARDWARE.md giving the pin table and a measured TDM slot map: slots 0 and 2 are the microphones, slot 1 is the MIC3 loop-back, slot 3 is dead.
  • The Box-3 example configuration (esphome/wake-word-voice-assistants, esp32-s3-box-3/esp32-s3-box-3.yaml) stays useful as a comparison – same codec combination (audio_adc: es7210, audio_dac: es8311) and the shape of micro_wake_word, mute switch and PSRAM entry, but different pins.

Component coverage in ESPHome (2026.11.2): audio ADCs ES7210 (default address 0x40, four microphone channels, per-channel gains, TDM option), ES7243, ES7243E. Audio DACs AIC3204, ES8156, ES8311 (default address 0x18), ES8388, ES9038Q2M, PCM5122, TAS2780, TAS58xx.

The trap that fires first on the voice path: ES8311 and ES7210 share MCLK/BCLK/LRCK (GPIO12/13/14). ESPHome's i2s_audio cannot act as master for capture and playback at the same time in this wiring – "Parent bus is busy". The two patterns that do work: two I2S buses with the microphone branch as master, or one bus in 4-slot TDM mode under the AEC component (ESPHome 2026.11.0 or newer). That is exactly what the MIC3 loop-back is for.

On the voice pipeline:

  • voice_assistant streams 16 kHz / 16-bit mono to Home Assistant (HA 2023.5 or newer). Two microphone channels – one pre-processed, one raw – need HA 2026.6 or newer.
  • The wake word runs either on the board (micro_wake_word) or in the HA pipeline (use_wake_word: true). The official on-device models are okay_nabu, hey_jarvis and hey_mycroft, plus a VAD model against false triggers, and all are trained on English (trained_languages: ["en"]). That costs the syllable, not the language: wake in English, answer in German, because speech-to-text and text-to-speech follow the assistant's language. Custom wake words can be trained with microWakeWord.
  • Music playback on a satellite is not a separate trick but the same path: media player components (Speaker Audio Media Player, audio file / HTTP sources, Sendspin source and Sendspin group) plus the FLAC, MP3, Opus and WAV decoders. On the ESP32-S3 the decoder buffers default to PSRAM, and Opus decodes with floating point there by default. If playback glitches in the first second or two, buffer_memory: internal helps.

Flashing: the traps of this board

  • No USB-UART chip. USB-C goes straight to GPIO19/GPIO20 (GPIO19 = D−, GPIO20 = D+). Arduino needs "USB CDC On Boot", otherwise the serial monitor stays empty. With a blank flash the port is unstable – use BOOT + RESET to enter download mode (flash address 0x00).
  • USB or UART, never both: EXIO6/EXIO7 switch the GPIO19/20 USB function against the GPIO43/44 UART (EXIO7 defaults HIGH, which disables the UART on GPIO43/44). Waveshare's own sources name EXIO6 in one place and EXIO7 in another – leave both alone.
  • TCA9555 (0x20) first: amplifier enable, buttons, LCD reset, camera power and SD select hang off it, and the chip has no reset pin. Keep the order: initialise the codec, then enable the amplifier, otherwise there is popping and hiss.
  • Strapping pins on the camera: CAM_D4/CAM_D5 are GPIO45/46 – boot straps. A plugged-in camera can block boot. GPIO33–37 belong to the PSRAM.
  • Cold-boot failure reported (ES7210 microphones and LEDs dead after a cold start, TCA9555 suspected) – a single unanswered forum post, no published fix. Worth watching.
  • TF card: ESP-IDF examples abort without a card; format FAT32. Battery voltage sensing is off by default (and would need a 0 Ω bridge that makes the camera unusable; GPIO1 per the schematic, GPIO8 per a demonstrably stale demo).

Still open until the board is on the desk

  • The silkscreens on my unit: U6 (ES8311), U8 (ES7210), the 8-pin amplifier next to the speaker connector, and the PCB version – the schematic is V1.1 while the diymore board is a black-mask variant of unknown revision.
  • Whether the RTC, battery charge stage, buck converter and TF slot are fitted on the diymore variant.
  • Flash size: 16 MB expected (twin schematic plus S3R8); the esptool log on first flash is the answer.
  • The microphone capsule part number, and whether the "digital microphone array" marketing or the schematic's analog coupling is right – recorded as a conflict, not resolved.

Plan

  1. Arrives, unbox, keep the esptool flash log (chip, flash, PSRAM), note the silkscreens and PCB version, run an I²C scan (expected: 0x18 ES8311, 0x40 ES7210, 0x20 TCA9555) – and write anything that differs from the twin into this page.
  2. Flash AirPlay 2: own environment in user_platformio.ini with DAC_ES8311 and pins GPIO12–16, plus board code that initialises the TCA9555 at 0x20 and drives PA_CTRL (EXIO8) high. Always both upload steps: -t upload and -t uploadfs.
  3. Settle the speaker question: the path leads to a passive speaker on the board's amplifier, not to the existing line-in active speakers. For those, a second ESP32-S3 with a PCM5102A remains the clean AirPlay zone.
  4. Enable Sendspin in the same firmware and pair the board as a Music Assistant zone – multiroom without losing AirPlay.
  5. Later, if the voice satellite gets a room: reflash to ESPHome, starting from the community configuration for this board, using the TDM/AEC pattern for the shared I2S bus.

Sources (checked 2026-12-02)