ClawSkills logoClawSkills

Announcer

使用 Airfoil + ElevenLabs TTS 通过 AirPlay 扬声器在全屋播报文本。

介绍

# Announcer

通过 Airfoil 和 ElevenLabs 在 AirPlay 音箱上播放 TTS 语音播报。

## 工作原理

1. 通过 ElevenLabs 生成语音(高品质 opus → 立体声 MP3) 2. 通过 Airfoil 连接到 AirPlay 音箱 3. 播放可选的提示音(锣声),随后播放语音播报 4. 播放结束后断开音箱连接

## 设置

有关前置条件和设置说明,请参阅 [SETUP.md](SETUP.md)。

## 用法

```bash # Announce to all configured speakers python3 skills/announcer/scripts/announce.py "Dinner is ready!"

# Announce to specific speakers only python3 skills/announcer/scripts/announce.py "Wake up!" --speakers "Kids Room"

# Skip the chime python3 skills/announcer/scripts/announce.py "Quick note" --no-gong ```

## 文件结构

``` announcer/ ├── SKILL.md ├── assets/ │ └── gong_stereo.mp3 # Announcement chime └── scripts/ └── announce.py # Main announcement script ```

用户配置(不属于技能的一部分): ``` ~/clawd/announcer/ └── config.json # Speaker list, voice, audio settings ```

更多产品