Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Open-source AI assistant ecosystem with MCP integrations, multimodal workflows, IoT support, and cross-platform voice interaction.
Jump to setup instructionsNo tool list is on record. This does not mean the server has no tools. Tools were not run.
No setup evidence yet No matching config or report on record. This does not mean the server is incompatible.
Same catalog task: Voice, audio & speech.
EU-hosted AI platform: OpenAI-compatible LLM gateway, document extraction, transcription, agents.
Same catalog task: Voice, audio & speech.
Media memory for AI agents and their humans: books, movies, music, shows, anime, podcasts, games.
Same catalog task: Voice, audio & speech.
Free web lookups; PDF to Markdown, audio transcripts, screenshots, WHOIS/DNS paid per call via x402.
Fetched from the repository for this visit.
English | 简体中文
Dynadot是ICANN认证,域名保有量全球前五的域名注册商,首屈一指的国际域名交易平台。为所有用户提供以域名为中心的域名注册,域名交易,域名管理,以及企业邮箱及建站服务。为所有用户提供多种域名优惠,并支持免费提交域名抢注需求。Dynadot黑五活动正式上线!探索我们的官方优惠页面,个位数价格注册域名,五折购入建站工具与专业版邮箱。
| Token能量站 | Thanks to Token能量站 (Factory.pub) for sponsoring this project! Providing API relay for GPT, Grok, Claude and other major models — stable, reliable, and affordable. Register here |
| GitDo.net | Thanks to GitDo.net for sponsoring this project! GitDo.net is an AI API aggregation platform — one API Key for Claude, Gemini, GPT and other major models. Direct connection, no proxy needed, stable and efficient. An ideal choice for enterprise-grade AI programming. Visit GitDo.net |
py-xiaozhi is a lightweight, cross-platform multi-modal AI interaction framework built on Python's async architecture. It supports real-time voice streaming, vision-language tasks, and IoT device control. Deployable across Windows, macOS, Linux desktops, and ARM embedded platforms (Raspberry Pi, Horizon Robotics RDK, Jetson Nano), it bridges the gap between Large Language Models and physical hardware — out of the box.
Evolved from the xiaozhi-esp32 firmware project. Officially adopted by D-Robotics (xiaozhi-in-rdk) as an upstream dependency.

MediaPlayer over AudioMixer + FFmpeg AudioDecoder with automatic TTS audio focus and built-in cross-platform WebRTC APM echo cancellationzh_CN), English (en_US), and Vietnamese (vi_VN) across GUI, TUI, and activation flows, with zero-restart live switching and XIAOZHI_LANG overrideZero to Xiaozhi Client (Video Tutorial)
StateManager owns IDLE, LISTENING, SPEAKING and NOTIFYING;
ConversationSession coordinates transitions. A successful wake/button action enters
LISTENING after the protocol connects and accepts the listen request. TTS moves the
device to SPEAKING; once local playback drains, the session resumes LISTENING or
returns to IDLE. Server notifications play in NOTIFYING while otherwise idle,
then return to IDLE. Connection establishment belongs to the protocol lifecycle,
not a separate device state.
AudioMixer, SoXR resampling, and built-in WebRTC APM AECpy-xiaozhi/
├── main.py # Application entry point
├── src/
│ ├── activation/ # Device activation
│ ├── audio_codecs/ # Audio codecs, multi-track AudioMixer, FFmpeg AudioDecoder
│ ├── audio_processing/ # Built-in WebRTC APM AEC & wake word detection
│ ├── bootstrap/ # Application bootstrap & dependency injection
│ ├── constants/ # Constants
│ ├── core/ # Core infrastructure (event bus, state management, task management, etc.)
│ ├── i18n/ # Pure-stdlib i18n engine & zh_CN / en_US / vi_VN locale catalogs
│ ├── logging/ # Logging subsystem
│ ├── mcp/ # MCP tool system & external plugin host
│ │ ├── mcp_server.py # MCP server
│ │ ├── plugins/ # External plugin loader, ZIP installer, subprocess RPC, MediaPlayerFacade
│ │ └── tools/ # Built-in tools (camera/screenshot/app/weather/volume/media)
│ ├── media/ # Source-agnostic MediaPlayer & autonomous TTS Audio Focus
│ ├── notifications/ # One-way server notification playback & subtitles
│ ├── plugins/ # Plugin system (audio, UI, MCP, wake word, shortcuts)
│ ├── protocols/ # Communication protocols (WebSocket/MQTT)
│ ├── ui/ # User interface
│ │ ├── gui/ # PySide6 + QML graphical interface
│ │ ├── tui/ # Textual full-screen terminal interface
│ │ └── gpio/ # GPIO embedded interface
│ └── utils/ # Utility functions
├── libs/ # Third-party native libraries
│ ├── libopus/ # Opus audio codec library
│ └── webrtc_apm/ # WebRTC audio processing module
├── models/ # Wake word models
├── assets/ # Static resources
├── scripts/ # Auxiliary scripts
├── documents/ # VitePress documentation site
├── pyproject.toml # Project configuration
└── build.json # Build configuration
# Clone project
git clone https://github.com/huangjunsen0406/py-xiaozhi.git
cd py-xiaozhi
# Base install (GPIO mode on Linux)
uv sync # Recommended (uv users)
# or: pip install -e . # pip users
# TUI mode (extra: Textual)
uv sync --extra tui
# or: pip install -e '.[tui]'
# GUI mode (extra: PySide6 + qasync)
uv sync --extra gui # Recommended (uv users)
# or: pip install -e '.[gui]' # pip users
# Full development environment (GUI + TUI + test / packaging tools)
uv sync --extra gui --extra tui --group dev
# Code formatting
./format_code.sh
# Run program - GUI mode (default; requires gui extra)
python main.py
# Run program - TUI mode (requires tui extra)
python main.py --mode tui
# Specify communication protocol
python main.py --protocol websocket # WebSocket (default)
python main.py --protocol mqtt # MQTT protocol
# Override UI language (auto / zh_CN / en_US / vi_VN)
XIAOZHI_LANG=en_US python main.py
Source checkouts, installed wheels and frozen builds share src.cli.main(argv=None).
Importing the launcher does not parse arguments, initialize configuration/logging,
or load Qt/audio. --help and invalid arguments exit before runtime initialization.
# Installed command (GUI still needs the gui extra)
xiaozhi --mode tui
# Equivalent module entry point
python -m src --mode tui
# Full regression suite, including Qt model tests without a display
uv run --extra gui --extra tui python -m pytest -q -W error::RuntimeWarning
# Build sdist, then build the wheel from that sdist
uvx --from build pyproject-build
# Install the wheel into a temporary venv outside the checkout and verify it
python scripts/check_wheel.py dist/*.whl
The wheel contains assets, wake-word models and the supplied native libraries under
src/_resources; source and PyInstaller layouts keep their existing resource paths.
FFmpeg is resolved from the system PATH for wheel installs. The wheel check installs
only platformdirs alongside the wheel to verify entry points and resources; it does
not exercise audio hardware, GUI rendering or the full runtime dependency set.
PRs and branch pushes run Python tests on 3.10/3.12 and installed-wheel checks on Linux, macOS and Windows. Lint gates critical syntax/undefined-name rules across the project and all configured rules for the new entry-point/verification code. Existing style warnings elsewhere remain a separate cleanup task.
async/await syntax, avoid blocking operationsConfigManager for unified configuration accesssrc/mcp/tools/ directoryProtocol abstract base classsrc/plugins/IDLE -- wake/button + protocol ready --> LISTENING
LISTENING -- TTS starts --> SPEAKING
SPEAKING -- playback drained --> LISTENING (continue) / IDLE (finish)
IDLE -- server notification --> NOTIFYING -- playback drained --> IDLE
bug, feature, docs, refactor, or maintenanceIn no particular order
Xiaoxia zhh827 SmartArduino-Li Honggang HonestQiao vonweller Sun Weigong isamu2025 Rain120 kejily Radio bilibili Jun Cyber Intelligence
Loading reviews...
GitHub checked 184h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.