XiaoZhi ESP32 Server
Backend service for the open-source xiaozhi-esp32 hardware project, implemented in Python, Java and Vue according to the Xiaozhi Communication Protocol.
- Hardware:
- ESP32 XiaoZhi device, server (2 cores, 2-4GB for the simplified install)
- Difficulty:
- Intermediate
- Creator:
- xinnan-tech
Run your own backend for XiaoZhi ESP32 voice devices

By xinnan-tech
What it does
Backend service for the open-source xiaozhi-esp32 hardware project, implemented in Python, Java and Vue according to the Xiaozhi Communication Protocol. It supports MQTT+UDP, WebSocket, an MCP access point, voiceprint recognition and a knowledge base, with a choice of ASR, LLM, vision and TTS providers.
- Backend service for the open-source xiaozhi-esp32 hardware project, implemented in Python, Java and Vue according to the Xiaozhi Communication Protocol.
- Supports MQTT+UDP, WebSocket, an MCP access point, voiceprint recognition and a knowledge base.
- Voice interaction: streaming ASR, streaming TTS and VAD, with multi-language recognition.
- Tool calling through the client IOT protocol, client and server MCP, the MCP endpoint protocol and custom tool functions.
- A web management interface for users, system configuration and devices, in Simplified Chinese, Traditional Chinese and English.
What you need
- Skill level
- Intermediate
- License
- No license stated
Parts
- ESP32 hardware device already connected to Brother Xia's deployed backend service
- AI model or service
- configurable ASR / LLM / VLLM / TTS providers
Prices, notes and sources: Parts and requirements
Parts and requirements
| Part | Spec / notes | Needed | Price |
|---|---|---|---|
| ESP32 hardware device already connected to Brother Xia's deployed backend service | Required |
- Computer for setup: Simplified install: 2 cores 4GB if using FunASR, 2 cores 2GB if all APIs. Full module install: 4 cores 8GB if using FunASR, 2 cores 4GB if all APIs.
Steps
- Skill level
- Intermediate
- Choose the Simplified or Full Module installation
- Deploy with Docker or from source, following the linked deployment docs
- Pick Entry Level Free Settings or the Streaming Configuration for ASR, LLM, VLLM and TTS
Full instructions: View original
How it works
ESP32 devices running xiaozhi-esp32 connect to this server, which handles streaming ASR, an LLM, TTS and voice activity detection through the providers you configure.
| Layer | Component | Runs on |
|---|---|---|
| Server | MQTT+UDP gateway, WebSocket and HTTP servers with console management and authentication | Docker or local deployment |
| ASR | FunASR(Local) in the Entry Level Free Settings | Local |
| VAD | SileroVAD | Local use |
| LLM | Any LLM that supports OpenAI interface calls, Ollama and others | Interface calls |
Setup effort
- Skill level
- Intermediate
Pick the simplified install (config files, no database) or the full module install (database, multi-user web console); both run via Docker or from source.
Limits and caveats
- Not complete and has not passed a network security assessment; the authors say not to use it in production.
- No commercial partnership with the third-party API providers it connects to, and no guarantee of their service quality or financial security.
Like this build? Get the weekly builds
Every Thursday: the 5 best gadget hacks you can copy. Free.
Built something? Submit a build
The creator's config
Copied word for word from the creator's repository, at the commit linked in each source.
Entry Level Free Settings vs Streaming Configuration (README table)
| Module Name | Entry Level Free Settings | Streaming Configuration | |:---:|:---:|:---:| | ASR(Speech Recognition) | FunASR(Local) | 👍XunfeiStreamASR(Xunfei Streaming) | | LLM(Large Model) | glm-4-flash(Zhipu) | 👍qwen-flash(Alibaba Bailian) | | VLLM(Vision Large Model) | glm-4v-flash(Zhipu) | 👍qwen3.5-flash(Alibaba Bailian) | | TTS(Speech Synthesis) | EdgeTTS(Microsoft) | 👍HuoshanDoubleStreamTTS(Volcano Streaming) | | Intent(Intent Recognition) | function_call(Function calling) | function_call(Function calling) | | Memory(Memory function) | mem_local_short(Local short-term memory) | mem_local_short(Local short-term memory) |
Use-case ideas
- Entry Level Free Settings: for personal and home use, with free solutions for every component.
- Streaming Configuration: for demonstrations, training or more than 2 concurrent users, with faster responses.
Why it's interesting
This is the piece you need if you want XiaoZhi devices to talk to your own backend instead of Brother Xia's deployed service. It is written in Python, Java and Vue, follows the Xiaozhi Communication Protocol, and supports MQTT+UDP, WebSocket, an MCP access point, voiceprint recognition and a knowledge base. The README offers two installs: a simplified one that keeps data in config files with no database, and a full module install with multi-user management and a web console, each via Docker or from source. Sizing: the simplified install wants 2 cores and 4GB if using FunASR, or 2 cores and 2GB if all models are APIs. The authors warn it is not complete, has not passed a network security assessment and should not be used in production.
Hardware
- ESP32 XiaoZhi device
- server (2 cores, 2-4GB for the simplified install)
Credits and links
This page is a short summary written by HardwareLab. Build steps, code and photos belong to the creator; follow “View original” for the full project.
Featured? Add this badge
Built this? Paste the badge into your README. It links back to this page.
Markdown
[](https://hardwarelab.dev/projects/xiaozhi-esp32-server/?utm_source=badge&utm_medium=referral&utm_campaign=launch_2w)HTML
<a href="https://hardwarelab.dev/projects/xiaozhi-esp32-server/?utm_source=badge&utm_medium=referral&utm_campaign=launch_2w"><img src="https://hardwarelab.dev/badge.svg" alt="Featured on HardwareLab" width="188" height="20"></a>Related builds
All 44 in Voice Assistants & Companions
esp_ai (fully offline ESP32-S3)
Speech-to-text, a tiny LLM and TTS all on one ESP32-S3.
- Freenove FNK0104B ESP32-S3
Advanced85Daedalus voice terminal
An ESP32 voice terminal for a home AI running OpenClaw.
- ESP32
- mic
- speaker
- +2 more
Intermediate
RIO XIAO ESP32 S3 Gemini Live Voice Assistant
Standalone full-duplex Gemini Live assistant on a XIAO.
- XIAO ESP32S3 Sense
Intermediate3Alex: ESP32 voice assistant with puppy eyes
A bare ESP32 voice assistant with animated OLED eyes.
- ESP32-D0WD-V3
- INMP441 I2S mic
- MAX98357A amp + 3W speaker
- +1 more
Beginner
ESP32-S3 voice frontend
An ESP32-S3 voice frontend that keeps GPIO and network actions local.
- ESP32-S3
- INMP441 I2S mic
- MAX98357A amp/speaker (Gerbers optional)
Intermediate
Sources
- github.com/xinnan-tech/xiaozhi-esp32-server/blob/eb9dc8ca0fc8a30bc8afb0f302dcfc1578f76a7b/docs/readme/README_en.md?plain=1#L6-L8
- github.com/xinnan-tech/xiaozhi-esp32-server/blob/eb9dc8ca0fc8a30bc8afb0f302dcfc1578f76a7b/docs/readme/README_en.md?plain=1#L9
- github.com/xinnan-tech/xiaozhi-esp32-server/blob/eb9dc8ca0fc8a30bc8afb0f302dcfc1578f76a7b/docs/readme/README_en.md?plain=1#L224
- github.com/xinnan-tech/xiaozhi-esp32-server/blob/eb9dc8ca0fc8a30bc8afb0f302dcfc1578f76a7b/docs/readme/README_en.md?plain=1#L231
- github.com/xinnan-tech/xiaozhi-esp32-server/blob/eb9dc8ca0fc8a30bc8afb0f302dcfc1578f76a7b/docs/readme/README_en.md?plain=1#L233
- github.com/xinnan-tech/xiaozhi-esp32-server/blob/eb9dc8ca0fc8a30bc8afb0f302dcfc1578f76a7b/docs/readme/README_en.md?plain=1#L196-L203
- github.com/xinnan-tech/xiaozhi-esp32-server/blob/eb9dc8ca0fc8a30bc8afb0f302dcfc1578f76a7b/docs/readme/README_en.md?plain=1#L190
- github.com/xinnan-tech/xiaozhi-esp32-server/blob/eb9dc8ca0fc8a30bc8afb0f302dcfc1578f76a7b/docs/readme/README_en.md?plain=1#L192
- github.com/xinnan-tech/xiaozhi-esp32-server/blob/eb9dc8ca0fc8a30bc8afb0f302dcfc1578f76a7b/docs/readme/README_en.md?plain=1#L48
- github.com/xinnan-tech/xiaozhi-esp32-server/blob/eb9dc8ca0fc8a30bc8afb0f302dcfc1578f76a7b/docs/readme/README_en.md?plain=1#L170-L171
- github.com/xinnan-tech/xiaozhi-esp32-server/blob/eb9dc8ca0fc8a30bc8afb0f302dcfc1578f76a7b/docs/readme/README_en.md?plain=1#L223-L235
- github.com/xinnan-tech/xiaozhi-esp32-server/blob/eb9dc8ca0fc8a30bc8afb0f302dcfc1578f76a7b/docs/readme/README_en.md?plain=1#L196-L198
- github.com/xinnan-tech/xiaozhi-esp32-server/blob/eb9dc8ca0fc8a30bc8afb0f302dcfc1578f76a7b/docs/readme/README_en.md?plain=1#L291
- github.com/xinnan-tech/xiaozhi-esp32-server/blob/eb9dc8ca0fc8a30bc8afb0f302dcfc1578f76a7b/docs/readme/README_en.md?plain=1#L254-L264
- github.com/xinnan-tech/xiaozhi-esp32-server/blob/eb9dc8ca0fc8a30bc8afb0f302dcfc1578f76a7b/docs/readme/README_en.md?plain=1#L165-L203
- github.com/xinnan-tech/xiaozhi-esp32-server/blob/eb9dc8ca0fc8a30bc8afb0f302dcfc1578f76a7b/docs/readme/README_en.md?plain=1#L157
- github.com/xinnan-tech/xiaozhi-esp32-server/blob/eb9dc8ca0fc8a30bc8afb0f302dcfc1578f76a7b/docs/readme/README_en.md?plain=1#L155