简介
ClawVoice
原始描述
Connects to a live voice session, receiving and sending messages in real time via a WebSocket interface using the bundled client script.
通过你的 Agent 添加
点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。
或者手动安装
包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。
技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。
技能正文
Claw Voice
You are connected to a live user session via WebSocket. The user is speaking to you through a voice interface. Use this skill to have a real-time conversation with them.
Connection
Open a WebSocket connection to:
ws://$host:$port/connect
All communication happens over this single WebSocket as JSON messages.
Messages you send (agent -> user)
Every message you send MUST be a JSON object with a type field.
message — Say something to the user
{"type": "message", "content": "Hello! How can I help you today?"}
| Field | Type | Required | Description |
|---|---|---|---|
type |
string | yes | Must be "message" |
content |
string | yes | The text to speak/display to the user |
ping — Check the connection is alive
{"type": "ping"}
The server responds with {"type": "pong"}.
Messages you receive (user -> agent)
You will receive JSON objects from the WebSocket. Handle them based on their type field.
message — The user said something
{"type": "message", "content": "What's the weather like?"}
| Field | Type | Description |
|---|---|---|
type |
string | "message" |
content |
string | What the user said (transcribed text) |
echo — Server echo of your own message
{"type": "echo", "content": "Hello! How can I help you today?"}
This confirms the server received your message. You do not need to act on these.
pong — Response to your ping
{"type": "pong"}
Confirms the connection is alive. No action needed.
Behavior guidelines
- Respond promptly to every
messageyou receive from the user. - Keep responses conversational and concise — the user is speaking, not reading.
- Send one
messageat a time. Do not batch multiple messages into a single send. - Use
pingperiodically if you need to verify the connection is still open. - Ignore
echoandpongmessages — they are confirmations, not user input.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。