Skip to content
MCU Atlas
ESP32ESP32-S3

XiaoZhi: open-source ESP32 AI voice chatbot

XiaoZhi is open-source firmware that turns ESP32-S3 boards into an AI voice assistant over the MCP protocol — many supported client boards and a large community.

Difficulty:IntermediateSource available

Photos

XiaoZhi: open-source ESP32 AI voice chatbot photo 1
XiaoZhi: open-source ESP32 AI voice chatbot photo 2
XiaoZhi: open-source ESP32 AI voice chatbot photo 3

Photos: 78/xiaozhi-esp32

Key Facts

  • Chip: ESP32-S3 (also C3/C5/C6/P4 boards)
  • Function: LLM voice assistant
  • Protocol: MCP for device control
  • Framework: ESP-IDF v6.0.1+ (release/v6.1 recommended)
  • Latest firmware release: v2.6.0 (13 Nov 2026)
  • Boards: 150+ supported; 200 prebuilt board firmware images at v2.6.0

About This Project

XiaoZhi is an open-source AI chatbot firmware for ESP32 boards, most commonly the ESP32-S3. It streams speech to a cloud LLM backend and plays responses back, and it uses the Model Context Protocol (MCP) so the device can control hardware or call tools. It supports more than 150 off-the-shelf boards with mics, speakers and displays — the v2.6.0 release (13 Nov 2026) ships 200 prebuilt board firmware images and newly supports boards like Waveshare's ESP32-C5 and ESP32-C6 touch LCDs, the M5Stack Cardputer and CoreP4X, and the Seeed reSpeaker XVF3800 — and it has a very large Chinese-speaking community. Documentation is partly in Chinese; English docs exist but are thinner.

Source & Attribution

Creator: 78 (@78)
Source: GitHub
Also from: xiaozhi.me
License: MIT
Last verified: 11/29/2026
XiaoZhi: open-source ESP32 AI voice chatbot

How to Build It

XiaoZhi is an open-source AI voice chatbot for ESP32-S3 (and some C3/P4) boards. It streams your voice to an LLM pipeline (ASR, LLM and TTS, or a realtime model) and speaks the reply. It supports wake words, displays with emoji faces, and device control through MCP. There are firmware builds for over 150 boards.

Parts Needed

  • ESP32-S3 board with PSRAM (or one of the many supported boards)
  • INMP441 I2S microphone
  • MAX98357A I2S amplifier + speaker
  • 0.96in OLED or an LCD (optional)
  • Breadboard and wires for a DIY build

Steps

  1. 1

    Pick hardware

    Use a supported dev board or the breadboard design: an S3 module with an I2S mic, amp, speaker and optional OLED. The wiring for each board lives in its board folder.

  2. 2

    Flash prebuilt firmware

    Beginners can follow the project's flashing guide, which flashes a release image for your board with no development setup.

  3. 3

    Provision Wi-Fi

    On first boot, the device starts a hotspot (or BluFi) for entering your Wi-Fi details.

  4. 4

    Link to a server

    By default it connects to the xiaozhi.me service. Register there and bind the device with the code it reads out, then pick your model and voice in the console. You can also run your own server.

  5. 5

    Build from source (optional)

    Install ESP-IDF v6.0.1 or newer — the release/v6.1 branch is recommended; 5.x no longer works — then choose your board variant and build. The Custom Board Guide explains how to add new hardware.

  6. 6

    Tips

    Boards with acoustic echo cancellation can do full-duplex conversation. MCP lets the assistant control the speaker, LEDs, servos and GPIO.

Bill of Materials

Parts list

5 parts · 5 linked

Heads up: some Buy links are affiliate links. If you buy through one, MCU Atlas may earn a small commission at no extra cost to you. It never changes which parts we list. How this works

1× INMP441

Elecrow US$5.00; an Amazon.ca 5-pack works out to ≈US$2.38 a mic (checked 2026-11-13)

1× MAX98357A

Adafruit's $5.95 mono breakout (3006) is out of stock — in-stock pick: the $9.95 stereo dual (6513) (checked 2026-11-13)

Not included: 3D-printed case, wire, solder, USB cable

Download CSV

Related Projects

Hermes Gadget SDK: give your AI agent an ESP32 body
Illustration
ESP32ESP32-S3
MIT-licensed firmware and tools that give a Hermes AI agent a body — 30+ ESP32 profiles, a Raspberry Pi client, and a desktop simulator you can try tonight.
Beginner·Code
3 parts listed
DIY Alexa: on-device wake word on ESP32 with TensorFlow Lite
Illustration
ESP32
Build your own voice assistant: an ESP32 detects the wake word on-device with a TensorFlow Lite model, no cloud microphone, then runs the automation you wire up.
Advanced·Code
4 parts listed
Whistle: offline speech-to-text on the ESP32-S3
Illustration
ESP32ESP32-S3
Real speech-to-text entirely on an ESP32-S3, fully offline: hold a button and say a command in one of seven languages — the onboard LED obeys.
Intermediate·Code
5 parts listed