#4343rd of 96 in AssistantsFor voice, speech and music
py-xiaozhi
Python voice client for Xiaozhi AI servers with MCP tools and GPIO
Live demo ↗
(opens in a new tab)Documentation ↗
(opens in a new tab)Repository on GitHub ↗
(opens in a new tab)
- Stars
- 3.6k
- License
- MIT
- Last commit
- Nov 2026
- Last release
- Nov 2026
- Language
- Python
3,258 on 2 May 20263,563 on 21 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
py-xiaozhi is an async Python client for the Xiaozhi voice assistant protocol. It streams Opus audio over WebSocket or MQTT, runs offline wake-word detection with Sherpa-ONNX, and exposes an MCP tool server (music, camera, screenshot, apps, weather, volume). It runs with a PySide6 GUI, a Textual TUI, or a GPIO mode on boards such as Raspberry Pi.
Who it is for: Developers building Xiaozhi voice clients on PCs or ARM boards
Strengths
- Three front ends: PySide6/QML GUI, Textual TUI, and GPIO for headless boards
- Offline wake word via Sherpa-ONNX with custom keywords
- Runs on Windows, macOS, Linux, and ARM boards (Raspberry Pi, RDK, Jetson Nano)
- New MCP tools go in src/mcp/tools; plugin system and Protocol base class
Weaknesses
- Needs a Xiaozhi-compatible backend and internet; no local LLM is run
- Python 3.10 to 3.12 only; GUI and TUI need separate extras
- Docs are mostly in Chinese; main branch needs manual dependency reinstall
- Built-in tools limited to music, camera, screenshot, apps, weather, volume
What it needs
- RAM ≥ 4 GB
- no GPU
- Needs Xiaozhi-compatible server (WebSocket or MQTT), Microphone and speaker, FFmpeg (wheel installs), Sherpa-ONNX models (wake word), OpenCV and camera (optional)
- Models: Sherpa-ONNX (wake word), Opus audio codec
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe.
Also in Assistants
See all 96| Rank | Project | Score |
|---|---|---|
| #41 | nanomusePersonal agent for phone, desktop and web with a self-hostable relay | 72 out of 100 |
| #42 | MoltisSelf-hosted personal agent server in Rust with chat channels and sandboxing | 72 out of 100 |
| #44 | qwen-audio-agentRealtime voice front end that delegates tasks to backend coding agents | 70 out of 100 |
| #45 | inno-agentPersonal learning agent with layered memory, cron scheduler and Feishu/WeChat channels | 70 out of 100 |
| #46 | ai-chatbot-frameworkSelf-hosted multi-user agent with a per-user Docker sandbox, memory and skills | 68 out of 100 |