wangzongming/esp-ai
The simplest and lowest-cost AI integration solution. If you like this project, please give it a Star~ | 最简单、最低成本的AI接入方案。喜欢本项目的话点个 Star 吧~
What it solves
Building a robot or smart device that can talk with users usually requires stitching together speech recognition (ASR), chat AI (LLM), and speech synthesis (TTS). ESP-AI removes that wiring hassle: you only need to prepare the AI services (ASR, LLM, TTS), and the project handles the rest — including wake words, conversation flow, and communication with the hardware. It targets ESP32-series development boards (esp32s3, esp32c3) and can be injected into existing projects as a dependency without breaking them.
How it works
ESP-AI splits into a server side (Node.js) and a client side (Arduino/IDF firmware). The server manages the full conversation chain: speech recognition (IAT/ASR) → LLM/RAG response → text-to-speech (TTS), with streaming data and fast response algorithms to balance cost and speed. The client firmware runs on the board, handles wake words (voice, button, serial, or Tianwen ASRPro), and connects to the server via a configurable network. It also supports conversation interruption, command recognition (e.g., appliance control, singing), plugin-based integration (so you can swap in any LLM/TTS/IAT service), and per-device configuration. A one-to-many architecture lets one server serve many boards, each with its own settings, and connections can require authentication. An open platform (dev.espai.fun) offers free ASR/TTS/LLM services and lets you clone a custom voice from a 15-second clip.
Who it's for
Developers and makers building AI-powered hardware — especially robots, talking toys, or smart devices — who want voice dialogue without starting from scratch. It suits both hobbyists (ready-to-use firmware and simple Node.js/Arduino code examples) and teams that need to manage multiple clients, handle high concurrency (via Nginx load balancing), or expose an OPEN API.
Highlights
- Complete pipeline: ASR → LLM/RAG → TTS in one package
- Multiple wake-up methods: offline voice, button, serial, Tianwen ASRPro
- Plugin-based design lets you plug in any LLM/TTS/IAT provider
- One server can serve many boards, each with independent configuration
- Full-chain streaming and fast-response algorithms to keep costs low
- Supports conversation interruption and dynamic command responses
- Client configuration webpage provided, with open platform offering free AI services
- Runs on ESP32S3 and ESP32C3; open source under MIT? (README does not state license, so omit)
- Ready out of the box via Docker for the server and prebuilt client firmware
Related
- Project
- Project
- Project
- Project