From Auckland to your workbench.NZ delivery from $7.90

How to Build an ESP32-S3 AI Voice Assistant: Parts List & Wiring

Parts list and I2S wiring for a DIY ESP32-S3 AI voice assistant, plus a ready-made option. Microphones, amplifiers and speakers are sourced separately.

ESP32Voice assistantProject
ESP32-S3 development board, loose jumper wires and a separate ready-made voice assistant

To build an ESP32-S3 AI voice assistant yourself you need a board with enough PSRAM, an I2S microphone, an I2S amplifier, a small speaker, and a wiring map that matches your firmware. This guide is a parts list and a pin table for a typical breadboard build. We do not sell microphones, amplifiers or speakers, so those parts have to come from an electronics supplier. If you would rather skip the wiring, we stock a ready-made ESP32-S3 Wi-Fi AI voice assistant.

This article is about assembling the electronics. It is not a review of the assembled unit, and it is not a 3D-printing workbench guide. If you already have the ready-made assistant and want to give it a job next to a printer, use An ESP32-S3 voice assistant for your 3D printing workbench instead.

The cover illustrates the development board and ready-made assistant as two separate options. Use your board markings and firmware to verify the wiring.

What you are building

A common open-source starting point is xiaozhi-esp32, a firmware project that turns an ESP32-S3 into a Wi-Fi voice chatbot. Its published breadboard guide uses an ESP32-S3-DevKitC-1-class N16R8 board, an INMP441 microphone, a MAX98357A amplifier and a small passive speaker. Other firmware will work only if you use the pins that firmware expects.

The pin table below follows the bread-compact-wifi mapping in xiaozhi-esp32, as documented for firmware v2.6.0 in the XiaoZhi ESP32-S3 breadboard guide. Confirm every pin against the labels on your own board and against the config.h file, or equivalent, for the firmware version you actually flash. A board that looks similar is not a reason to copy the table blindly.

Parts list

PartWhat to look forWhere to get it
ESP32-S3 development boardN16R8 (16 MB flash, 8 MB PSRAM). Headers already soldered save a stepWe stock the ESP32-S3 N16R8 dual USB-C board
USB data cableMust carry data, not charge-only. A short cable is easier on the desk30 cm USB-A to USB-C data and charging cable, sold separately
I2S microphoneINMP441 or a documented equivalent I2S MEMS micElectronics supplier; we do not stock microphones
I2S amplifierMAX98357A breakout, or another I2S Class-D amp your firmware supportsElectronics supplier; we do not stock amplifiers
SpeakerA small passive speaker, often 4 Ω or 8 Ω, around 2–3 W. Match the amp’s ratingElectronics supplier; we do not stock speakers
Breadboard and jumper wiresUseful for the first wiringElectronics supplier
Optional screw-terminal breakoutBrings pins out to terminals so you can avoid a tangle of jumpers44-pin green terminal breakout, development board sold separately. Check pin spacing and layout before fitting
Optional display or LEDThe xiaozhi breadboard build can use a small I2C OLED; the on-board RGB LED can show statusWe do not stock displays. The LED is already on many S3 boards
Optional external antennaConsider it if the installed board has a weak Wi-Fi signal5 dBi FPC IPX Wi-Fi antenna. See the antenna note below

As of 25 November 2026 (NZDT), the dual USB-C N16R8 board is NZ$21.90, the breakout is NZ$7.50, the antenna is NZ$2.00 and the 30 cm cable is NZ$2.50; check each product page for the current price and stock. If this is your first ESP32-S3, set up the Arduino IDE or ESP-IDF with the getting-started guide first, including 16 MB flash and OPI PSRAM.

Why N16R8 rather than a smaller S3, and when a classic ESP32 would be the wrong chip for a voice project, is covered in ESP32-S3 vs ESP32: which board to buy in NZ.

Wiring table (example only)

Disconnect USB and any other power before you change wires. Identify pins by the GPIO numbers printed on the board, not by header position or a photograph. The microphone and amplifier both speak I2S, but their data pins go in opposite directions.

INMP441 microphone

INMP441 pinExample ESP32-S3 connectionPurpose
VDD / VCC3V33.3 V microphone supply. Do not use 5 V
GNDGNDSignal ground
L/RGNDSelects the left channel, which this firmware mapping reads
WSGPIO4Word-select (left/right clock) into the microphone
SCKGPIO5Bit clock
SDGPIO6Microphone data out to the ESP32-S3 data in

If L/R is left floating or tied to 3.3 V, the board may boot and play sound while the voice service hears silence. The microphone’s SD pin is an output; it is not the amplifier’s DIN pin.

MAX98357A amplifier and speaker

MAX98357A pinExample ESP32-S3 connectionPurpose
VIN5V on a USB-powered DevKitC-1-style board, or 3V3 if that matches your module and firmware notesAmplifier supply. Check your breakout’s voltage range
GNDGNDSignal ground, shared with the microphone and board
DINGPIO7Amplifier data in from the ESP32-S3 data out
BCLKGPIO15Bit clock
LRC / LRCLKGPIO16Word-select / left-right clock
Speaker + and −Amplifier speaker terminals onlyPassive speaker. Do not drive a speaker from an ESP32 pin

Leave the amplifier’s SD (shutdown) and GAIN pins as your module’s datasheet or the firmware guide specifies. On many breakouts, leaving them unconnected enables the amp at a default gain; other guides tie them in a particular way. Follow the module in your hand, not a generic photo.

The official XiaoZhi breadboard guide powers the MAX98357A from the 5V node of an ESP32-S3-DevKitC-1 that is powered only over USB, and it warns not to copy that supply connection onto an unverified compatible board. Confirm the 5V pin on your board is a USB 5 V output and not something else. Start with the volume low.

Optional display, LED and buttons

In the same bread-compact-wifi mapping, a small I2C OLED uses SDA on GPIO41 and SCL on GPIO42, the on-board RGB LED is often on GPIO48, and the BOOT button is GPIO0. Use those pins only if your firmware variant actually expects them.

Pins to leave alone, and a note on power

On an ESP32-S3 N16R8 board several GPIOs already have a job. The getting-started guide lists them in full. In short, stay off the USB data pins (GPIO19 and GPIO20), the flash and octal-PSRAM pins (typically GPIO26 to GPIO37 on R8 boards), the default serial pins (GPIO43 and GPIO44) if you still need logs, and the strapping pins (GPIO0, GPIO3, GPIO45 and GPIO46) unless you know why you are using them.

Other power habits that prevent most early failures:

  • Keep microphone and logic signals at 3.3 V. ESP32-S3 pins are not 5 V tolerant.
  • Share a single ground between the board, microphone and amplifier.
  • Power the speaker from the amplifier, never from a GPIO.
  • Use a USB data cable and a supply that can hold 5 V under load. A charge-only cable will not flash the board. At higher playback volume the amplifier draws more current and a weak port or cable can cause resets.
  • Do not inject a second supply into the board’s 5V or 3V3 rails unless you know how the board’s power path is wired.

If you would rather use screw terminals than jumper wires, fit a compatible board to the 44-pin terminal breakout after checking the pin spacing. The breakout does not include a development board.

Firmware, antenna and the ready-made option

Flash the firmware your wiring was taken from, then test in this order: the board enumerates over USB, the speaker plays a start-up or test tone, and the microphone registers a tap or a short spoken phrase. If you hear playback but the service hears nothing, re-check the microphone L/R pin and the SD/DIN direction.

The ESP32-S3 uses 2.4 GHz Wi-Fi only. The dual USB-C board we stock has a PCB antenna and an IPEX socket. An external FPC Wi-Fi antenna is optional. Consider one if placement or an enclosure weakens the signal. Check whether your board requires an antenna-selection change before using the socket. Wi-Fi range in a 3D-printed case explains how to measure that. For a printed enclosure once the wiring works, see design a PETG enclosure with AI and OpenSCAD.

If you do not want to source a microphone, amplifier and speaker, the assembled ESP32-S3 N16R8 Wi-Fi AI voice assistant already includes a microphone, speaker, 1.54-inch colour display, rechargeable battery and a clear enclosure. As of 25 November 2026 (NZDT) that unit is NZ$49.00; check the product page for the current price and stock. We have not claimed that its firmware is xiaozhi-esp32, so treat it as a finished device with its own setup instructions.

The same N16R8 board family also suits later projects such as an e-paper desk display or a weekend walking-robot body in PETG. For local stock, GST and how to avoid a mislabelled board, see where to buy ESP32 in NZ. Browse the ESP32 boards in NZ we currently list.


Before you apply power. The pin table is an example from a published open-source firmware mapping, checked against that project’s documentation on 25 November 2026. It is not a universal ESP32-S3 pinout. Confirm pins, voltage and gain settings for your board, modules and firmware before you connect USB.

For current prices and stock, see the dual USB-C N16R8 board and the ready-made AI voice assistant.

Parts mentioned in this guide

Stocked in Auckland, with New Zealand delivery or free pickup in Torbay. Each product page shows the current price and stock.

More projects