Install
openclaw skills install xiaozhiclawClawHub Security found sensitive or high-impact capabilities. Review the scan results before using.
XiaoZhi AI Device (ESP32) integration for OpenClaw. Enables real-time voice interaction with your AI assistant through XiaoZhi hardware. Supports WebSocket bridge, Volcengine Doubao STT/TTS, and Opus audio streaming.
openclaw skills install xiaozhiclawXiaoZhiClaw is an OpenClaw channel that connects XiaoZhi AI ESP32 hardware devices to OpenClaw agents, enabling real-time voice interaction.
XiaoZhi Device → WebSocket → STT (Doubao) → OpenClaw Agent
↓ ↓
Microphone AI Response
↓ ↓
Speaker ← WebSocket ← TTS (Doubao) ← OpenClaw Agent
Talk to your AI assistant through XiaoZhi hardware
Ask questions and get voice responses
Real-time voice interaction
Control volume, brightness via MCP commands
Hardware status monitoring
Device management
Voice-activated AI assistant
Hands-free operation
Physical AI companion
# The WebSocket server starts automatically when OpenClaw starts
# Default port: 8080
Configure your XiaoZhi firmware to connect to:
ws://YOUR_COMPUTER_IP:8080
# Required: Volcengine Doubao API Credentials
# Get from: https://console.volcengine.com/
DOUBAO_APP_ID=your_app_id_here
DOUBAO_ACCESS_TOKEN=your_access_token_here
# Optional: WebSocket Server Configuration
XIAOZHI_PORT=8080
# Optional: Audio Configuration
AUDIO_SAMPLE_RATE=16000
AUDIO_FRAME_DURATION=60
Handshake:
{
"type": "hello",
"transport": "websocket",
"audio_params": {
"format": "opus",
"sample_rate": 16000,
"frame_duration": 60
}
}
Listen Events:
{
"type": "listen",
"state": "start"
}
{
"type": "listen",
"state": "stop",
"text": "transcribed text"
}
TTS Events:
{
"type": "tts",
"state": "start",
"text": "response text"
}
{
"type": "tts",
"state": "stop"
}
XiaoZhi ESP32 ←→ WebSocket Server ←→ OpenClaw Channel ←→ AI Agent
↓ ↓ ↓ ↓
Microphone Port 8080 xiaozhiclaw PocketAI
↓ ↓ ↓ ↓
Speaker Opus Audio Message Router Response
↓
Doubao STT/TTS
ws://IP:PORTMIT License
PocketAI for Leo - OpenClaw Community