XiaoZhi AI is voice-interaction firmware for ESP32 boards. It uses large models such as Qwen or DeepSeek and controls devices through the MCP protocol.
Overview
The XiaoZhi AI chatbot targets ESP32-family hardware as a voice entry point. It connects to large language and speech models and uses MCP for multi-terminal control, including on-device actions and cloud-side extensions.
Networking can use Wi-Fi, wired Ethernet, USB RNDIS, or cellular modules on supported boards. Communication supports WebSocket or MQTT plus UDP. Audio uses Opus streaming with classic ASR, LLM, and TTS pipelines or realtime end-to-end voice models; hardware with echo cancellation can do full-duplex conversation.
Boards may include OLED or LCD displays with emoji, camera input, battery management, and provisioning via hotspot or BluFi. Device-side MCP can drive speakers, LEDs, servos, and GPIO; cloud MCP can reach smart home, desktop, search, and email workflows. Many board variants and release builds are documented.
Beginners can flash prebuilt firmware without a full dev environment; default builds connect to the xiaozhi.me service where individuals can register for hosted model access. Personal server deployment is described in separate related server projects, not in this firmware repository alone.
Key features
- WebSocket or MQTT plus UDP transport
- Opus voice with ASR, LLM, and TTS
- Device and cloud MCP control
- Wi-Fi, Ethernet, USB, or 4G networking
- Display, camera, and battery support
- Many ESP32 chip and board targets
- BluFi or hotspot Wi-Fi provisioning
- Wide UI language and prompt support
Use cases
- DIY voice assistant hardware
- Smart home voice control on ESP32
- MCP-driven embedded agents
- Hands-free IoT prototypes