xiaozhi-esp32 README

The project's README from github.com/78/xiaozhi-esp32. As one markdown file: README.md.

An MCP-based Chatbot

(English | 中文 | 日本語)

Introduction

👉 Human: Give AI a camera vs AI: Instantly finds out the owner hasn't washed hair for three days【bilibili】

👉 Handcraft your AI girlfriend, beginner's guide【bilibili】

As a voice interaction entry, the XiaoZhi AI chatbot leverages the AI capabilities of large models like Qwen / DeepSeek, and achieves multi-terminal control via the MCP protocol.

Control everything via MCP

Recent Updates

Features Implemented

Hardware

Breadboard DIY Practice

See the Feishu document tutorial:

👉 "XiaoZhi AI Chatbot Encyclopedia"

Breadboard demo:

Breadboard Demo

Supports 138 Board Directories and 171 Release Variants (Partial List)

Software

Firmware Flashing

For beginners, it is recommended to use the firmware that can be flashed without setting up a development environment.

The firmware connects to the official xiaozhi.me server by default. Personal users can register an account to use the Qwen real-time model for free.

👉 Beginner's Firmware Flashing Guide

Development Environment

Developer Documentation

Large Model Configuration

If you already have a XiaoZhi AI chatbot device and have connected to the official server, you can log in to the xiaozhi.me console for configuration.

👉 Backend Operation Video Tutorial (Old Interface)

For server deployment on personal computers, refer to the following open-source projects:

Other client projects using the XiaoZhi communication protocol:

Custom Assets Tools:

About the Project

This is an open-source ESP32 project, released under the MIT license, allowing anyone to use it for free, including for commercial purposes.

We hope this project helps everyone understand AI hardware development and apply rapidly evolving large language models to real hardware devices.

If you have any ideas or suggestions, please feel free to raise Issues or join our Discord or QQ group: 1095994019

Star History

Star History Chart

xiaozhi-esp32 (78/xiaozhi-esp32)

Searching Database…

这是什么?小智是一款面向 ESP32 芯片的开源固件,能把便宜的单片机开发板变成可以语音对话的 AI 聊天机器人,并通过 MCP 让 AI 控制设备和云端服务。
这是要装在手机上的应用,还是要烧录到芯片里的固件?这是一套直接运行在 ESP32 系列芯片上的 C++ 固件,不涉及手机应用;不过另有独立的配套服务端和客户端项目。
我该怎么让设备跑起来?新手不用搭建任何开发环境,直接刷入预编译的固件二进制文件即可。默认连接官方 xiaozhi.me 服务器,个人用户注册账号后可以免费使用通义千问(Qwen)实时模型。
在 Windows 和 Linux 上编译固件的效果一样吗?两个系统都能编译,但推荐使用 Linux,因为它编译更快,驱动问题也比 Windows 少。
它支持哪些 ESP32 芯片?支持 ESP32、ESP32-C3、ESP32-C5、ESP32-C6、ESP32-S3 和 ESP32-P4,涵盖 138 个开发板目录和 171 个发布版本变体。
它必须联网吗?能完全离线运行吗?核心的唤醒词检测通过 ESP-SR 在本地离线完成,但聊天流程(ASR/LLM/TTS)需要连接服务器才能工作,可以连官方 xiaozhi.me,也可以连自建的服务器,通过 WebSocket 或 MQTT+UDP 通信。
设备端通过 MCP 实际能控制什么?设备端的 MCP 让 AI 能控制本地硬件,比如扬声器、LED、舵机和 GPIO;云端的 MCP 则把模型的能力延伸到智能家居控制、电脑桌面操作、知识库搜索和邮件处理。
我能不用官方的 xiaozhi.me,自己架设服务器吗?可以。社区维护着用 Python、Java 和 Go 编写的替代服务端实现,它们使用相同的小智通信协议,列在“相关开源项目”中。
它支持中文以外的语言吗?支持。固件内置 39 种界面语言,在有对应版本的情况下会提供本地化语音提示,否则回退到英文。
Creator
78
Size
11.4 MB
Stars
31.3K
Age
2y
Commits · 90 Days