Войти

Building My Own ESP32 Voice Assistant – Part 1: The Plan and the Parts

B Автор Baran Can Aydın · 6 min · 2026-10-31

Building My Own ESP32 Voice Assistant – Part 1: The Plan and the Parts

This is part 1 of an ongoing series in which I build my own ESP32 voice assistant. I add new parts as the components arrive and the project moves forward.

Türkçe versiyonu

The printed and assembled case

At home I run Home Assistant on a Raspberry Pi. Now I am giving it "ears" and a "mouth": a small assistant speaker that wakes up when I say "Hey Jarvis", understands commands and answers out loud, running entirely locally. Because it runs locally, my conversations do not go to a cloud service.

In this series I walk through how I build the device, step by step, from start to finish.

Why build it myself?

Two reasons:

  • I want to build my own voice assistant. Instead of buying a ready-made box, an assistant I understand and can change however I like.
  • Building it myself is much cheaper. It costs far less than a ready-made smart speaker. The parts are a few inexpensive electronic modules, and the case takes about 47 grams of PLA.

Inspiration and credits

This project is built on work that others have shared openly. Thanks to all of them:

This blog and this device are a personal, non-commercial project.

How does it work?

  1. Wake word: the ESP32 listens to the microphone all the time and detects "Hey Jarvis" on the device itself with micro_wake_word. So there is no constant audio stream to the Raspberry Pi.
  2. Command: after the wake word, what I say is sent to Home Assistant over Wi-Fi.
  3. Understanding: the Assist pipeline on the Raspberry Pi turns the speech into text (STT), handles the command (for example, turn on a light) and turns the answer into speech (TTS).
  4. Answer: the audio comes back to the ESP32 and plays through the speaker. The LED strip also pulses blue while it is listening.

Parts

  • ESP32 development board (DOIT ESP32 DevKit V1): The brain: Wi-Fi, wake word, audio streaming
  • INMP441 microphone: Digital (I2S) MEMS microphone
  • MAX98357A amplifier: Mono amplifier that drives the speaker from a digital (I2S) signal
  • Speaker: Plays the answers
  • WS2812B LED strip: Status light (listening / thinking)
  • 100 kΩ resistor: Sets the amplifier's gain
  • 3D-printed case: Holds everything together

Current status: I already had the ESP32 board, I bought the INMP441 microphone and printed the case on my 3D printer. The amplifier, the speaker, the LED strip and the resistor are on order.

The first two parts I have: on the left the round INMP441 microphone module, on the right the DOIT ESP32 DevKit V1 board with an ESP32-WROOM-32 module.

INMP441 microphone and ESP32 DevKit V1

Cost

I bought the missing parts on Amazon.com.tr (October 2026 prices; the US dollar amounts are approximate):

  • INMP441 microphone: 192.00 TL (≈ $6)
  • MAX98357A amplifier: 309.00 TL (≈ $10)
  • 4 cm, 4 Ω, 3 W speaker: 175.50 TL (≈ $6)
  • ESP32 DevKit V1: Already had one (about 300–400 TL, ≈ $10–13)
  • WS2812B LED strip: Already had one
  • PLA (~47 g): From a spool
  • Total of what I bought: 676.50 TL (≈ $22)

Buying the ESP32 too, the total would have been about 1,000–1,100 TL (≈ $33–36).

Wiring diagram

Wiring diagram

The microphone and the amplifier share the same I2S lines (clock and channel select pins):

  • INMP441: Pin: SCK / WS / SD; ESP32: GPIO25 / GPIO26 / GPIO33
  • MAX98357A: Pin: BCLK / LRC / DIN; ESP32: GPIO25 / GPIO26 / GPIO27
  • WS2812B: Pin: DIN; ESP32: GPIO32

Update: in Part 7 the ESP32's GPIO26 pad burned while soldering. WS and LRC are now on GPIO14.

3D printing

I printed the case from the Printables model on a Creality Ender-3 V3 KE, with 1.75 mm PLA filament (Creality CR-PLA). The case consists of a base that holds the ESP32 board and the speakers, a top cover with a speaker grille, and a diffuser ring that spreads the LED light.

I placed all parts on a single plate in Creality Print and printed them together:

The parts arranged on the plate in Creality Print

The preview after slicing. The green areas are support structures:

Slicing preview in Creality Print

  • Print time: 2 h 28 min
  • Filament: 47.2 g (15.83 m)
  • Plate: Textured PEI
  • Nozzle: 0.4 mm
  • Layer height: 0.2 mm
  • Infill: 80%
  • Walls: 2
  • Supports: On

Tip: all parts except the round top cover (the diffuser ring) can be printed together. The LED strip sits inside this cover, so print it separately in a white or translucent filament that lets light through. If you print it in black, the LED light will not be visible from outside.

The material cost is very low: about 47 grams of PLA, roughly 5% of a 1 kg spool.

I shared the Creality Print project with these settings on GitHub, so you can open it and print directly: 3D print file (GitHub)

The Ender-3 V3 KE printing the base in white PLA:

After printing

The base, straight off the plate:

The base right after printing, on the plate

The ESP32 board fits its slot in the base exactly. The raised parts on both sides hold the speakers:

The ESP32 in the base

The ESP32 DevKit V1 seated in the base, top view

All parts together: the black body band, the white top ring with the black speaker grille, and the white base that holds the ESP32.

The parts of the case

The closed case from the side. The opening at the bottom gives access to the ESP32's USB port:

The closed case, side view

Next part

While the other parts were in the mail, I ran a first test with the ESP32 and the INMP441 I already had: Part 2: Testing the Microphone

What's next?

The project is still going: connecting the amplifier and the speaker, soldering, the LED ring and the final assembly come in the next parts.

Parts of the series

📘 The whole build is also on Instructables as a 10-step guide: DIY ESP32 Voice Assistant for Home Assistant With a Custom Wake Word


Case design: ImpatientMaker (a remix of JakeB's "Voice Assist Puck"), CC BY-NC 4.0. ESPHome code: impatientmaker/esphome-voice-assist (MIT).

AI Automationn8nBusiness
Поделиться:
← Все статьи