Token导航 LogoToken导航TokenDH.com
开发敏感数据clawhub未标认证来源可访问clear审计通过

xiaozhiclawxiaozhiclaw 开发

Agent Skill

xiaozhiclaw 用于处理音频、语音、转写和声音素材相关任务,适合在 OpenClaw 中需要整理音频流程、转写内容或生成配音素材时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

10,943

周安装

447

GitHub Stars

1

下载量

3,504
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:xiaozhiclaw(xiaozhiclaw 开发)
来源仓库:https://github.com/leohuang8688/xiaozhiclaw
安装命令:
openclaw skills install xiaozhiclaw
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install xiaozhiclaw

简介

xiaozhiclaw 用于集成小智 AI 硬件设备,适合物联网语音助手开发。

  • 适用于 ESP32 平台的实时语音识别与自然语言处理任务。
  • 支持 WebSocket 通信与麦克风阵列驱动,实现低延迟响应。
  • 安装命令:openclaw skills install xiaozhiclaw,需串口与音频权限。
  • 涉及硬件交互时应做好异常处理,避免因设备离线导致服务中断。

SKILL.md

name
xiaozhiclaw
description
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.

XiaoZhiClaw - XiaoZhi AI Device Integration

🔒 Security

  • ✅ No external API keys stored in code
  • ✅ All credentials via environment variables
  • ✅ No shell command execution
  • ✅ WebSocket connections only (no inbound HTTP)
  • ✅ Open source and auditable
  • ⚠️ Requires Volcengine Doubao API credentials

Overview

XiaoZhiClaw is an OpenClaw channel that connects XiaoZhi AI ESP32 hardware devices to OpenClaw agents, enabling real-time voice interaction.

Permissions

Required Permissions

  • ✅ Network Access: WebSocket server (port 8080 by default)
  • ✅ Audio Processing: Opus encoding/decoding
  • ✅ STT/TTS API: Volcengine Doubao (HTTPS)
  • ❌ No Admin/Root Privileges Required
  • ❌ No System Command Execution

Data Flow

XiaoZhi Device → WebSocket → STT (Doubao) → OpenClaw Agent
     ↓                                          ↓
  Microphone                              AI Response
     ↓                                          ↓
  Speaker ← WebSocket ← TTS (Doubao) ← OpenClaw Agent

Use Cases

1. Voice Conversation

Talk to your AI assistant through XiaoZhi hardware
Ask questions and get voice responses
Real-time voice interaction

2. Hardware Control

Control volume, brightness via MCP commands
Hardware status monitoring
Device management

3. Voice Commands

Voice-activated AI assistant
Hands-free operation
Physical AI companion

Usage Examples

Start the Service

# The WebSocket server starts automatically when OpenClaw starts
# Default port: 8080

Configure XiaoZhi Device

Configure your XiaoZhi firmware to connect to:

ws://YOUR_COMPUTER_IP:8080

Voice Interaction Flow

  1. User speaks → XiaoZhi microphone captures audio
  2. Audio streaming → Opus frames sent via WebSocket
  3. STT processing → Volcengine Doubao transcribes to text
  4. AI processing → OpenClaw agent processes and responds
  5. TTS processing → Volcengine Doubao converts to speech
  6. Audio playback → XiaoZhi speaker plays response

Environment Variables

# 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

Protocol

WebSocket Message Types

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"
}

Architecture

XiaoZhi ESP32 ←→ WebSocket Server ←→ OpenClaw Channel ←→ AI Agent
     ↓                ↓                    ↓              ↓
  Microphone    Port 8080          xiaozhiclaw      PocketAI
     ↓                ↓                    ↓              ↓
  Speaker      Opus Audio         Message Router   Response
                     ↓
              Doubao STT/TTS

Notes

  1. Network: Ensure port 8080 is open on your firewall
  2. Latency: Use wired connection or high-speed Wi-Fi for best results
  3. API Credentials: Volcengine Doubao API credentials required for STT/TTS
  4. Audio Format: Opus encoding, 16kHz sample rate, 60ms frame duration

Troubleshooting

Connection Refused

  • Check if port 8080 is open
  • Verify XiaoZhi device network settings
  • Check firewall settings

Audio Lag

  • Check network latency
  • Use wired connection if possible
  • Ensure good Wi-Fi signal strength

STT/TTS Not Working

  • Verify Volcengine API credentials
  • Check API quota and billing
  • Verify network connectivity to Volcengine API

Device Not Connecting

  • Verify WebSocket URL format: ws://IP:PORT
  • Check XiaoZhi firmware configuration
  • Ensure OpenClaw gateway is running

Resources

Changelog

v1.0.0 (2026-03-12)

  • ✅ Initial release
  • ✅ WebSocket server implementation
  • ✅ Volcengine Doubao STT/TTS integration
  • ✅ Opus audio encoding/decoding
  • ✅ Real-time voice conversation
  • ✅ OpenClaw channel integration

License

MIT License

Author

PocketAI for Leo - OpenClaw Community

Credits

  • OpenClaw Team
  • XiaoZhi AI ESP32 Project
  • Volcengine Doubao
  • PocketAI 🧤

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

75.56%
按下载量换算2,648

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills