Build your own AI friend
Go to file
2025-03-18 21:21:30 +08:00
.github/ISSUE_TEMPLATE add issue template 2025-02-20 15:22:29 +08:00
docs Add SenseCAP Watcher (#241) 2025-03-04 20:38:53 +08:00
main add ja-JP sounds 2025-03-18 21:21:30 +08:00
scripts add ja-JP sounds 2025-03-18 21:21:30 +08:00
.gitignore 增加LilyGo T-CameraPlus-S3的支持及修复LilyGo T-Circle-S3编译i2s_std_clk_config_t报'i2s_std_clk_config_t::ext_clk_freq_hz' does not match declaration (#239) 2025-03-01 22:06:53 +08:00
CMakeLists.txt Add discharging status 2025-03-09 19:18:10 +08:00
LICENSE Initial commit 2024-08-31 18:08:16 +08:00
partitions_4M.csv reconstruct application 2024-10-03 06:39:22 +08:00
partitions_8M.csv add more fonts for version 1.0.0 2025-01-23 13:50:22 +08:00
partitions_32M_sensecap.csv Add SenseCAP Watcher (#241) 2025-03-04 20:38:53 +08:00
partitions.csv add more fonts for version 1.0.0 2025-01-23 13:50:22 +08:00
README_en.md Fix sensecap-watcher board bug (#322) 2025-03-11 01:38:42 +08:00
README_ja.md Fix sensecap-watcher board bug (#322) 2025-03-11 01:38:42 +08:00
README.md Add SenseCAP Watcher (#241) 2025-03-04 20:38:53 +08:00
sdkconfig.defaults fix network error 2025-02-18 05:14:53 +08:00
sdkconfig.defaults.esp32c3 fit the memory usage for esp32c3 2024-11-29 11:06:05 +08:00
sdkconfig.defaults.esp32s3 upgrade to LVGL 9 2025-02-03 23:43:07 +08:00

XiaoZhi AI Chatbot

(中文 | English | 日本語)

This is Terrence's first hardware project.

👉 Build your AI chat companion with ESP32+SenseVoice+Qwen72B!【bilibili】

👉 Equipping XiaoZhi with DeepSeek's smart brain【bilibili】

👉 Build your own AI companion, a beginner's guide【bilibili】

Project Purpose

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

Through this project, we aim to help more people get started with AI hardware development and understand how to implement rapidly evolving large language models in actual hardware devices. Whether you're a student interested in AI or a developer exploring new technologies, this project offers valuable learning experiences.

Everyone is welcome to participate in the project's development and improvement. If you have any ideas or suggestions, please feel free to raise an Issue or join the chat group.

Learning & Discussion QQ Group: 376893254

Implemented Features

  • Wi-Fi / ML307 Cat.1 4G
  • BOOT button wake-up and interruption, supporting both click and long-press triggers
  • Offline voice wake-up ESP-SR
  • Streaming voice dialogue (WebSocket or UDP protocol)
  • Support for 5 languages: Mandarin, Cantonese, English, Japanese, Korean SenseVoice
  • Voice print recognition to identify who's calling AI's name 3D Speaker
  • Large model TTS (Volcano Engine or CosyVoice)
  • Large Language Models (Qwen, DeepSeek, Doubao)
  • Configurable prompts and voice tones (custom characters)
  • Short-term memory, self-summarizing after each conversation round
  • OLED / LCD display showing signal strength or conversation content
  • Support for LCD image expressions
  • Multi-language support (Chinese, English)

Hardware Section

Breadboard DIY Practice

See the Feishu document tutorial:

👉 XiaoZhi AI Chatbot Encyclopedia

Breadboard demonstration:

Breadboard Demo

Supported Open Source Hardware

Firmware Section

Flashing Without Development Environment

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

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

👉 Flash Firmware Guide (No IDF Environment)

Development Environment

  • Cursor or VSCode
  • Install ESP-IDF plugin, select SDK version 5.3 or above
  • Linux is preferred over Windows for faster compilation and fewer driver issues
  • Use Google C++ code style, ensure compliance when submitting code

AI Agent Configuration

If you already have a XiaoZhi AI chatbot device, you can configure it through the xiaozhi.me console.

👉 Backend Operation Tutorial (Old Interface)

Technical Principles and Private Deployment

👉 Detailed WebSocket Communication Protocol Documentation

For server deployment on personal computers, refer to another MIT-licensed project xiaozhi-esp32-server

Star History

Star History Chart