huangjunsen0406/py-xiaozhi

Open-source AI assistant ecosystem with MCP integrations, multimodal workflows, IoT support, and cross-platform voice interaction.

What it solves

py-xiaozhi bridges the gap between Large Language Models (LLMs) and physical hardware, enabling real-time, multi-modal AI interactions on desktop and embedded devices. It provides a ready-to-use framework for voice-based AI that can see, listen, and control physical hardware.

How it works

The project uses a Python-based asynchronous architecture to manage real-time data streams. It handles audio input via an Opus codec with low-latency processing and supports offline wake-word detection using Sherpa-ONNX. The system communicates with AI models via WebSocket or MQTT and includes a modular tool system (MCP) that allows the AI to perform actions like controlling hardware, managing apps, or checking the weather.

Who it’s for

It is designed for developers and hobbyists who want to build AI-powered voice assistants or embodied AI projects. It is suitable for those working on Windows, macOS, or Linux, as well as those deploying on edge hardware like Raspberry Pi, Jetson Nano, or Horizon Robotics RDK.

Highlights

  • Real-time voice AI with sub-20ms latency and offline wake-word support.
  • Multi-modal capabilities, including camera integration for image understanding.
  • Cross-platform support for desktops and ARM-based embedded systems.
  • Flexible UI options, including PySide6/QML graphical interfaces, CLI, and GPIO control.
  • Extensible plugin and tool architecture for adding custom functionality via JSON-RPC.
  • Secure communication with WSS/TLS encryption and auto-reconnection features.

Related

  • Project
  • Project
  • Project
  • Project
  • Dispatch