Ceban.dev

A Home Assistant Voice Assistant on an ESP32-C3

October 20, 2026 esp32home-assistantesphomevoicediy

Home Assistant has an official voice assistant guide for the ESP32-S3-BOX-3: flash a ready firmware from the browser and talk to your house. I wanted the same thing from a bare ESP32-C3 and two cheap modules. This guide shows what changes when you leave the S3-BOX behind: the wiring, the ESPHome config, and where the C3 differs.

Supplies

PartNotes
ESP32-C3 boardany board with a few free GPIOs; I use an ESP32-C3 Mini
INMP441I2S MEMS microphone module
MAX98357AI2S amplifier module (3 W class D)
Speaker4 Ω or 8 Ω, up to 3 W
LED + 220 Ω resistor (optional)status indicator, as on the ATOM Echo
Wires, header pinsfor soldering the modules
Capacitor 100–470 µF (optional)across the amplifier’s 5 V and GND, helps with clicks on loud peaks

On the Home Assistant side you need version 2023.12 or newer (the S3-BOX guide’s requirement), the ESPHome integration, and an Assist pipeline: either Home Assistant Cloud or your own local speech-to-text, text-to-speech and wake word services.

Step 1: solder the modules

The microphone and the amplifier share the same two I2S clock lines (BCLK and LRCLK). Each has its own data line, one in and one out.

FromTo (ESP32-C3)
INMP441 VDD3V3
INMP441 GNDGND
INMP441 L/RGND (left channel)
INMP441 SCKGPIO4 (BCLK)
INMP441 WSGPIO5 (LRCLK)
INMP441 SDGPIO6 (data in)
MAX98357A VIN5V
MAX98357A GNDGND
MAX98357A BCLKGPIO4 (BCLK, shared)
MAX98357A LRCGPIO5 (LRCLK, shared)
MAX98357A DINGPIO7 (data out)
MAX98357A SD, GAINleave unconnected
SpeakerMAX98357A + and −
LED (optional)GPIO10 → 220 Ω resistor → LED → GND

Pins to avoid on the ESP32-C3: GPIO 18 and 19 are used by USB, and 2, 8 and 9 are strapping pins. GPIO4–7 are free unless you use JTAG.

Step 2: prepare Home Assistant

Open Settings → Voice assistants and make sure you have a working pipeline: speech-to-text, a conversation agent, text-to-speech, and a wake word engine. For a fully local setup, the usual choice is the Whisper, Piper and openWakeWord add-ons.

The S3-BOX guide lets the box detect the wake word on the device itself, which is faster. This build does it the other way: the ESP32-C3 streams audio to Home Assistant and the wake word engine runs on the server. The default word is “OK Nabu”.

Step 3: the ESPHome config

Create a new device in the ESPHome dashboard and use this config. Put the secrets in secrets.yaml.

esphome:
  name: c3-voice

esp32:
  board: esp32-c3-devkitm-1
  framework:
    type: esp-idf

logger:

api:
  encryption:
    key: !secret api_key

ota:
  - platform: esphome
    password: !secret ota_password

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

i2s_audio:
  i2s_lrclk_pin: GPIO5
  i2s_bclk_pin: GPIO4

microphone:
  - platform: i2s_audio
    id: mic
    adc_type: external
    i2s_din_pin: GPIO6
    channel: left
    sample_rate: 16000
    bits_per_sample: 32bit
    correct_dc_offset: true

speaker:
  - platform: i2s_audio
    id: spk
    dac_type: external
    i2s_dout_pin: GPIO7
    channel: mono
    sample_rate: 16000
    bits_per_sample: 16bit

output:
  - platform: ledc
    pin: GPIO10
    id: led_out

light:
  - platform: monochromatic
    id: led
    output: led_out
    default_transition_length: 0s
    effects:
      - pulse:
          name: listening
          transition_length: 0.5s
          update_interval: 0.5s

voice_assistant:
  microphone: mic
  speaker: spk
  use_wake_word: true
  noise_suppression_level: 2
  auto_gain: 31dBFS
  volume_multiplier: 2.0
  on_wake_word_detected:
    - light.turn_on:
        id: led
        brightness: 100%
  on_listening:
    - light.turn_on:
        id: led
        effect: listening
  on_tts_start:
    - light.turn_on:
        id: led
        brightness: 100%
  on_end:
    - light.turn_off: led
  on_error:
    - light.turn_off: led

What the main parts do:

  • i2s_audio describes the shared clock lines. Both the microphone and the speaker use them.
  • The microphone is channel: left because the INMP441 L/R pin is on GND. The voice assistant expects 16 kHz audio.
  • use_wake_word: true tells Home Assistant to run the wake word on the stream it receives.
  • noise_suppression_level (0 to 4), auto_gain (up to 31 dBFS) and volume_multiplier fix a quiet MEMS microphone. Start with these values and tune them.

The LED mirrors what the ATOM Echo does in the $13 voice remote guide: it pulses while the device listens, stays on while you speak and while the answer plays, and goes off when the exchange ends. The Echo uses blue and green for this; a single-color LED is simpler, and an RGB LED can add the colors later.

Step 4: flash it

The first flash goes over USB from the ESPHome dashboard (a Chromium-based browser with web serial, as in the S3-BOX guide). Later updates go over Wi-Fi. The device needs a 2.4 GHz network.

Step 5: add it to Home Assistant

After it connects, Home Assistant discovers the device through the ESPHome integration. Confirm it, assign an area, and in the device page choose which Assist pipeline it uses. Then say the wake word and a command, for example “turn on the kitchen light”.

Step 6: tune it

  • It does not hear you. Raise volume_multiplier or auto_gain, and move the microphone away from the speaker.
  • It answers itself or echoes. Lower the speaker volume or add distance between the microphone and the speaker.
  • Crashes or reboots. Audio components use a lot of RAM and CPU, and the ESPHome docs warn that extra components can cause crashes. Remove everything you do not need from the config and read the logs.
  • Responses feel slow. On the device page in the ESPHome integration, tune “Finished speaking detection”.
  • Commands for the wrong room. The area name in a command must match the area name in Home Assistant exactly.
  • Custom commands. Add them as sentence triggers in an automation.

Pitfalls

  • No PSRAM. The ESP32-S3-BOX-3 has more memory than the ESP32-C3, which is why its default setup differs from this one.
  • BLE next to audio. The docs say Bluetooth components are known to cause issues with voice and audio components, so keep BLE off.
  • Wi-Fi. Use 2.4 GHz and a stable signal, because the wake word stream goes over the network all the time.

Based on the Home Assistant S3-BOX-3 voice assistant guide and the ESPHome voice_assistant and i2s_audio documentation.