Connects to a live voice session, receiving and sending messages in real time via a WebSocket interface using the bundled client script.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install claw-voice或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install claw-voice⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/claw-voice/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
You are connected to a live user session via voice. The user is speaking to you through a voice interface. Use the bundled client.py script to communicate with them in real time.
The script is located at $skill_dir/client.py.
To say something to the user, run:
uv run python $skill_dir/client.py send "Hello! How can I help you today?"
The server echoes back a confirmation as JSON:
{"type": "echo", "content": "Hello! How can I help you today?"}
To wait for the user to say something:
uv run python $skill_dir/client.py recv
This blocks until the user speaks, then prints their message as JSON and exits:
{"type": "message", "content": "What's the weather like?"}
Use --timeout to control how long to wait (default 30s):
uv run python $skill_dir/client.py recv --timeout 60
If the timeout expires with no message, it prints an error and exits with code 1.
To receive a stream of messages over a period of time:
uv run python $skill_dir/client.py listen --timeout 60
This prints each incoming message as a JSON line until the timeout expires:
{"type": "message", "content": "Tell me a joke"}
{"type": "message", "content": "Actually, make it about cats"}
The agent command creates a loop: it listens for user messages, forwards each one to openclaw agent --agent main --message ', captures the stdout, and sends it back to the user over the WebSocket.
uv run python $skill_dir/client.py agent
This runs indefinitely by default. Use --timeout to limit the session:
uv run python $skill_dir/client.py agent --timeout 300
The flow for each message:
{"type": "message", "content": "..."} to the clientopenclaw agent --agent main --message '...' and captures stdout{"type": "message", "content": ""} Logs are printed to stderr-style output as [user] and [agent] prefixed lines.
All commands accept --url to override the default WebSocket address:
uv run python $skill_dir/client.py --url ws://$host:$port/connect send "Hi"
Default URL: ws://localhost:3111/connect
| Type | Fields | Description | |-----------|---------------------|---------------------------------| | message | content (string) | Text to speak/display to the user |
| Type | Fields | Description | |-----------|---------------------|-------------------------------------| | message | content (string) | What the user said (transcribed text) | | echo | content (string) | Server confirmation of your sent message — ignore these | | pong | | Connection health check response — ignore these |
message you receive from the user.echo messages — they are confirmations, not user input.recv for turn-based conversation. Use listen when you expect the user to say multiple things.安装 ClawVoice 后,可以对 AI 说这些话来触发它
Send a Slack message to the #engineering channel about the deployment
Formats and sends the message with relevant context, tagging the right people
Summarize all unread messages in my inbox from today
Reads messages across connected channels and returns a prioritized summary
Draft a reply to this customer complaint and send it for review
Writes an empathetic, professional response and routes it to the approval queue
将技能文件夹放到 ~/.claude/skills/claw-voice/ 目录(个人级,所有项目可用),或 .claude/skills/claw-voice/(项目级)。重启 AI 客户端后,用 /claw-voice 主动调用,或让 AI 根据上下文自动发现并使用。
ClawVoice 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
ClawVoice 可免费安装使用。请查阅仓库了解许可证信息。
Connects to a live voice session, receiving and sending messages in real time via a WebSocket interface using the bundled client script.
ClawVoice 属于「Communication」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。