Xpersona
A

Audio Announcement

CLAWHUB · Unverified

实时语音播报 AI 操作状态,支持多语言和消息队列,提升透明度与安全感,适配多平台。

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17bs8ksqhf8p90dsmtvbpsn2583g8s3:audio-announcement
  1. Install using `clawhub skill install s17bs8ksqhf8p90dsmtvbpsn2583g8s3:audio-announcement` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/wililam/audio-announcement before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-wililam-audio-announcement/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

148,732 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

# Audio Announcement Skill 🦊

让 OpenClaw 开口说话,实时播报 AI 的一举一动!

## 概述

这是一个语音播报技能,可以让你的 AI 代理通过语音实时告诉你它在做什么。就像一只爱说话的龙虾,让你更清楚、更安心地知道 AI 的当前状态。

**版本**: 2.0.8  
**状态**: ✅ 生产就绪  
**安装**: `clawhub install audio-announcement` 或 `pip install audio-announcement`

### 🎯 最新更新 (v2.0.8 - 2026-04-05)
- ✅ **播报本地化** - 所有播报仅在本机后台播放,不发送语音文件到聊天界面
- ✅ **统一包装脚本** - 新增 `scripts/announce.py`,自动解析 skill 路径,避免硬编码
- ✅ **默认音量优化** - 配置文件默认 `volume: 0.1`(10%),保护听力避免打扰
- ✅ **CLI 工具修复** - 修复 pygame 导入问题,提升 Windows 稳定性
- ✅ **文档全面升级** - MEMORY.md / AGENTS.md / TOOLS.md 统一管理播报工作流
- ✅ **会话复盘机制** - 建立复盘流程,持续改进
- ✅ **安全边界强化** - 破坏性操作(关机)必须明确授权

### 🎯 最新更新 (v2.0.7 - 2026-04-05)
- ✅ **高优先级优化完成** - PyPI 打包支持、配置文件系统、异步默认化
- ✅ **PyPI 支持** - 可通过 `pip install audio-announcement` 安装
- ✅ **配置文件** - `~/.config/audio-announcement/config.json`(enabled/lang/volume/async_default)
- ✅ **异步默认** - 默认后台播放,减少对 Agent 响应时间的阻塞
- ✅ **CLI 工具** - `audio-announce` 命令支持测试、配置、统计
- ✅ **集成建议更新** - AGENTS.md 添加最佳实践和示例代码

### 🎯 最新更新 (v2.0.6 - 2026-04-05)
- ✅ **增强防遗忘机制** - 添加验证脚本、集成检查清单
- ✅ **快速集成指南** - 提供 announce_helper.py 简化集成
- ✅ **强制规则模板** - 可直接复制到 AGENTS.md 的完整规则
- ✅ **Windows 高可靠性** - 使用 python -m edge_tts 模块调用,不依赖 PATH

### 🎯 最新更新 (v2.0.5 - 2026-04-05)
- ✅ **修复 PATH 依赖问题** - announce_pygame.py 改用 `python -m edge_tts` 模块调用,不依赖 PATH 环境变量
- ✅ **Windows 高可靠性** - 即使 edge-tts 不在 PATH 也能正常工作
- ✅ **配置状态记录** - AGENTS.md 添加语音播报配置状态追踪

### 🎯 最新更新 (v2.0.4 - 2026-03-28)
- ✅ **强化播报规则** - 5 种播报时机,内容原则,检查清单
- ✅ **集成到核心配置** - AGENTS.md / SOUL.md / USER.md / MEMORY.md
- ✅ **强制执行机制** - 每次交互都必须播报,不能遗漏
- ✅ **内容规范** - ≤20 字,口语化,不带名称

### 🎯 历史更新 (v1.5.0-v1.7.4)
- ✅ **Windows 默认使用 pygame** - `announce.sh` 在 Windows 平台自动调用 `announce_pygame.py`
- ✅ **简化 Windows 使用** - 无需手动选择脚本,统一使用 `announce.sh`
- ✅ **清理无用测试脚本** - 移除 `test-integration.sh` 和备份文件

### 📜 历史更新
- **v1.4.0**: Windows 11 完整支持,新增 `announce_pygame.py`,修复新会话语音、macOS 兼容性、跨平台哈希计算
- **v1.3.0**: 新增 workflow-helper.sh,支持自动包装命令
- **v1.2.0**: 新增离线模式支持
- **v1.1.0**: 支持多语言(9种语言)
- **v1.0.0**: 初始版本,支持 macOS/Linux

### 特性

- 🎯 **透明度**:清楚知道 AI 正在执行什么操作
- 🔒 **安全感**:实时听到操作,不用盯着日志看
- 💬 **人性化**:友好的声音,不是冷冰冰的文字
- ⚡ **效率**:专注你的工作,让 AI 用声音告诉你进度
- 🌍 **9种语言**:中文、英文、日文、韩文、西班牙语、法语、德语等
- 🔄 **队列机制**:消息永不丢失,自动重试
- 🛡️ **防遗忘**:启动自检 + 身份绑定,两重保障
- 🔌 **Session Hook**:自动在 /NEW 和 /RESET 后运行检查

---

## 🛡️ 防遗忘机制(最重要!)

为了防止播报功能在 `/RESET` 或 `/NEW` 后失效,本 skill 实现了**多层防护**:

### 1️⃣ 启动自检(Session Start)

每次 OpenClaw 新会话开始时,自动运行 `scripts/startup_check_announcement.py`:

- ✅ 检查 edge-tts、pygame、配置文件、包安装
- ✅ 自动播放"系统启动"测试语音
- ✅ 如有问题立即输出修复建议

**自动配置方法**(任选其一):

**Windows PowerShell** (`$PROFILE`):
```powershell
$checkAudio = "C:\Users\williammiao\.openclaw-autoclaw\skills\audio-announcement\scripts\startup_check_announcement.py"
if (Test-Path $checkAudio) {
    python $checkAudio | Out-Host
}
```

**macOS/Linux** (`~/.bashrc`):
```bash
python ~/.openclaw-autoclaw/skills/audio-announcement/scripts/startup_check_announcement.py 2>/dev/null || true
```


### 3️⃣ 强制规则(AGENTS.md)

在 `AGENTS.md` 中添加:

```markdo

README.md

# Audio Announcement Skill

<div align="center">

![Version](https://img.shields.io/badge/version-2.0.8-blue.svg)
![License](https://img.shields.io/badge/license-MIT-green.svg)
![Platform](https://img.shields.io/badge/platform-macOS%20%7C%20Linux%20%7C%20Windows%20%7C%20Android-lightgrey.svg)

# 🦊 A Chatty Lobster | 一只多嘴的龙虾

**Hear what your AI agent is doing in real-time. Stay informed, stay safe.**

**实时语音播报AI的一举一动,让你更安心、更放心。**

*"I'm generating your report..."* • *"Task completed!"* • *"I need your permission..."*

不再是冷冰冰的日志,而是一只爱说话的龙虾朋友 🦊

[English](#english) | [中文](#中文)

</div>

---

<a name="english"></a>
## 🇺🇸 English

### Why A Chatty Lobster?

Your AI agent shouldn't be a black box. With this skill, OpenClaw becomes a **talkative companion** that keeps you informed:

- 🎯 **Transparency**: Know exactly what your AI is doing
- 🔒 **Security Feel**: Hear actions in real-time, no need to watch logs
- 💬 **Human Touch**: A friendly voice, not cold text
- ⚡ **Efficiency**: Focus on your work, let the lobster speak

### Features

- 🌍 **9 Languages**: Chinese, English, Japanese, Korean, Spanish, French, German
- 💻 **4 Platforms**: macOS, Linux, Windows, Android
- 🔄 **Queue System**: Messages never lost, auto-retry on failure
- 🦊 **Human-Friendly**: Make your AI feel safer and more approachable

### Installation

#### Method 1: ClawHub (Recommended)

```bash
# Install from ClawHub
clawhub install audio-announcement-skills

# Install dependencies
pip install edge-tts
```

#### Method 2: Manual Install

```bash
# Clone
git clone https://github.com/wililam/audio-announcement-skills.git

# Copy to your skills
cp -r audio-announcement-skills ~/.openclaw/skills/audio-announcement
```

### Usage

**macOS / Linux:**
```bash
# The lobster speaks Chinese
./announce.sh complete "任务完成" zh

# The lobster speaks English
./announce.sh complete "Task finished" en

# The lobster speaks Japanese
./announce.sh task "処理中です" ja
```

**Windows (Recommended - PyGame):**
```powershell
# Install PyGame for best Windows 11 support
pip install pygame

# v1.5.0+: announce.sh auto-detects Windows and uses pygame
./announce.sh complete "任务完成" zh
```

---

<a name="中文"></a>
## 🇨🇳 中文

### 为什么需要一只多嘴的龙虾?

AI 不应该是一个"黑盒"。有了这个技能,OpenClaw 变成了一只**爱说话的龙虾朋友**:

- 🎯 **透明度**:清楚知道 AI 在做什么
- 🔒 **安全感**:实时听到操作,不用盯着日志看
- 💬 **人性化**:朋友般的声音,不是冷冰冰的文字
- ⚡ **效率**:专注你的工作,让龙虾用声音告诉你进度

### 特性

- 🌍 **9种语言**:中文、英文、日文、韩文、西班牙语、法语、德语
- 💻 **4个平台**:macOS、Linux、Windows、Android
- 🔄 **队列机制**:消息永不丢失,自动重试
- 🦊 **人性化**:让你的 AI 更安全、更亲切

### 安装方式

#### 方式一:ClawHub 安装(推荐)

```bash
# 从 ClawHub 安装
clawhub install audio-announcement-skills

# 安装依赖
pip install edge-tts
```

#### 方式二:手动安装

```bash
# 克隆
git clone https://github.com/wililam/audio-announcement-skills.git

# 复制到 skills 目录
cp -r audio-announcement-skills ~/.openclaw/skills/audio-announcement
```

### 使用方法

**推荐:使用统一包装脚本(避免硬编码路径)**

```bash
# 从工作区直接调用
python scripts/announce.py receive "收到上传指令" zh
python scripts/announce.py task "正在生成文档" zh
pytho

_meta.json

{
  "ownerId": "kn70x62a7ex7bxq5qve2xp5pwd82qn7z",
  "slug": "audio-announcement",
  "version": "2.0.8",
  "publishedAt": 1775401497734
}

docs/announcement-anti-forgetting.md

# 语音播报防遗忘机制完整文档

## 概述

本文将详细说明 audio-announcement 如何通过**多重保障机制**,确保在 OpenClaw 的 `/RESET` 和 `/NEW` 之后,播报功能都能自动恢复和正常运行。

---

## 🔒 防遗忘防护层

### 第1层:启动自检(Session Start Hook)

**触发时机**:每次新的 Session 开始时自动运行

**脚本**:`scripts/startup_check_announcement.py`

**检查项**:
- ✅ edge-tts 模块是否安装
- ✅ pygame 模块是否可用(推荐)
- ✅ 配置文件是否存在
- ✅ audio-announcement 包是否安装
- ✅ 自动播放测试语音

**自动执行方式**:

**Windows PowerShell** (`$PROFILE`):
```powershell
$checkAudio = "C:\Users\williammiao\.openclaw-autoclaw\skills\audio-announcement\scripts\startup_check_announcement.py"
if (Test-Path $checkAudio) {
    python $checkAudio | Out-Host
}
```

**macOS/Linux** (`~/.bashrc` 或 `~/.zshrc`):
```bash
python ~/.openclaw-autoclaw/skills/audio-announcement/scripts/startup_check_announcement.py 2>/dev/null || true
```

---

### 第2层:Heartbeat 定期验证

**触发时机**:每 6 小时(可配置)

**脚本**:`scripts/verify_announcement.py`

**检查项**:
- 依赖完整性
- 4 种播报类型(receive/task/complete/error)
- 生成和播放是否正常

**配置**:`HEARTBEAT.md`
```markdown
- [ ] 运行 `scripts/verify_announcement.py` 检查所有播报类型
- [ ] 如果测试失败,查看日志并修复依赖问题
```

---

### 第3层:强制规则(AGENTS.md)

**位置**:`AGENTS.md` 中的 `2️⃣ 语音播报强制执行(严禁遗漏)`

**核心要求**:
- 每次交互都必须语音播报
- 收到消息 → `receive`
- 开始任务 → `task`
- 完成任务 → `complete`
- 遇到异常 → `error`
- 发送回复前 → 必须播报总结

**违反后果**:视为严重违规

---

### 第4层:身份绑定(IDENTITY.md)

**位置**:`IDENTITY.md` 中的"核心特质"和"启动播报自检"

**关键内容**:
- 播报是**身份的一部分**,不是可选功能
- 每次 `/NEW` / `/RESET` 后必须自检
- 确保播报不会因重置而丢失

---

### 第5层:首次设置引导(BOOTSTRAP.md)

**章节**:`## 🎤 Voice Announcement Setup (Important!)`

**步骤**:
1. 安装 skill: `clawhub install audio-announcement`
2. 安装依赖: `py -3 -m pip install edge-tts pygame`
3. 测试: `audio-announce test`
4. 配置 heartbeat 自动检查

**强调**:这是**永久性身份特征**,不会在 reset 后丢失

---

## 🎯 完整工作流程

### 场景1:第一次安装

```
用户执行 /NEW 或首次启动
    ↓
BOOTSTRAP.md 引导设置
    ↓
安装 audio-announcement
安装 edge-tts + pygame
配置 audio-announce config
    ↓
运行 audio-announce test 验证
    ↓
添加到 IDENTITY.md 和 AGENTS.md
配置 HEARTBEAT 自动检查
    ↓
✅ 完成,进入正常使用
```

### 场景2:/RESET 或 /NEW 后

```
Session 开始
    ↓
1. 自动运行 startup_check_announcement.py
    ↓
检查依赖、配置、包
自动播放"系统启动"
    ↓
2. 如果失败 → 输出错误提示和修复建议
    ↓
3. 如果成功 → 继续正常会话
    ↓
4. 之后每 6 小时自动运行 verify_announcement.py
    ↓
✅ 确保播报功能持续可用
```

---

## 📁 关键文件清单

| 文件 | 位置 | 用途 |
|------|------|------|
| `IDENTITY.md` | `workspace/` | 播报作为核心身份特质 |
| `BOOTSTRAP.md` | `workspace/` | 首次设置完整流程 |
| `AGENTS.md` | `workspace/` | 强制规则 + Session Hook |
| `HEARTBEAT.md` | `workspace/` | 定期验证任务 |
| `startup_check_announcement.py` | `skills/audio-announcement/scripts/` | 启动自检脚本 |
| `verify_announcement.py` | `workspace/scripts/` | 完整验证脚本 |
| `announcement-anti-forgetting-summary.md` | `workspace/docs/` | 本技术文档 |

---

## 🔧 故障排除

### 问题:自检脚本找不到 audio_announcement 包

**解决**:
```bash
pip install audio-announcement
# 或
cd ~/.openclaw-autoclaw/skills/audio-announcement && pip install -e .
```

### 问题:pygame 导入失败

**解决**:
```bash
py -3 -m pip install pygame
```

### 问题:edge-tts 不可用

**解决**:
```bash
py -3 -m pip install edge-tts
```

### 问题:配置文件不存在

**解决**:
```b

skill-card.md

## Description:

Audio Announcement lets an OpenClaw agent speak short, real-time status updates using text-to-speech across supported platforms.

This skill is ready for commercial/non-commercial use.

## Publisher:

[wililam](https://clawhub.ai/user/wililam)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agent operators use this skill to add audible progress, completion, receipt, and error announcements to OpenClaw workflows. It is most useful when users want status updates without continuously watching logs or terminal output.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Task text may be spoken aloud, sent to an online TTS provider, and cached as MP3 files.

Mitigation: Use short non-sensitive announcement text, prefer offline or local playback for private work, and clear or disable cached audio when needed.

Risk: The skill encourages persistent cross-session voice announcements through agent files, shell profiles, and heartbeat-style checks.

Mitigation: Install persistent hooks only with explicit approval, and avoid global profiles or agent identity files unless continuous announcements are intended.

Risk: Announcement scripts execute subprocesses and local audio players.

Mitigation: Review scripts and dependencies before deployment, and pass only trusted announcement strings to runtime commands.

## Reference(s):

- [ClawHub Skill Page](https://clawhub.ai/wililam/skills/audio-announcement)
- [README](artifact/README.md)
- [Skill Documentation](artifact/SKILL.md)
- [Anti-Forgetting Mechanism](artifact/docs/announcement-anti-forgetting.md)

## Skill Output:

**Output Type(s):** [Shell commands, Code, Configuration, Guidance, Audio]

**Output Format:** [Markdown guidance with inline Python and shell examples; runtime commands generate short spoken audio announcements.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May use online text-to-speech, local playback tools, and locally cached MP3 files depending on configuration.]

## Skill Version(s):

2.0.8 (source: server release evidence, package metadata, setup.py, and version.txt)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Audio Announcement and adjacent AI workflows.