hackers365/xiaozhi-esp32-server-golang

golang版本的小智后端服务,支持websocket和mqtt+udp协议,支持声纹识别/声音克隆/知识库/mcp远程调用/主动音频下发/openclaw等功能

What it solves

This project provides a high-performance backend server that enables real-time AI voice interaction for IoT devices like the ESP32. It handles the complex "pipeline" of converting speech to text, processing it with an AI model, and converting the response back into speech, all while maintaining low latency and supporting many devices at once.

How it works

The server acts as a central hub that connects your hardware to various AI services. It uses a modular architecture where components like voice activity detection (VAD), speech recognition (ASR), large language models (LLM), and text-to-speech (TTS) can be swapped or configured. It supports multiple communication protocols (WebSocket, MQTT, UDP) and includes a web-based dashboard for testing, monitoring latency, and managing connected devices.

Who it’s for

It is designed for developers and hobbyists building smart voice-controlled hardware or IoT projects who need a reliable, scalable backend to manage AI-driven conversations and device interactions.

Highlights

  • Full-stream processing: Handles the entire ASR-to-LLM-to-TTS flow in real-time to minimize delays.
  • Modular design: Easily swap between different AI engines like OpenAI, Ollama, FunASR, or EdgeTTS.
  • Advanced features: Includes support for speaker identification, voice cloning, and RAG (Retrieval-Augmented Generation) for knowledge-based responses.
  • Management Console: A built-in web interface for configuring settings, testing individual modules, and monitoring device performance.
  • Flexible Deployment: Supports one-click bundles, Docker, or manual compilation on Linux, Windows, and macOS.

Related

  • Project
  • Project
  • Project
  • Project
  • Project