OA0 = Omni AI 0
OA0 是一个探索 AI 的论坛
现在注册
已注册用户请  登录
OA0  ›  技能包  ›  announcer:通过 AirPlay 扬声器在全屋广播文本内容

announcer:通过 AirPlay 扬声器在全屋广播文本内容

 
  cookie ·  2026-02-05 20:08:24 · 3 次点击  · 0 条评论  

名称: announcer
描述: "通过 AirPlay 扬声器,使用 Airfoil + ElevenLabs TTS 在全屋播报文本。"
摘要: "通过 AirPlay 扬声器、Airfoil 和 ElevenLabs 实现全屋 TTS 播报。"
版本: 1.2.1
主页: https://github.com/odrobnik/announcer-skill
元数据:
{
"openclaw":
{
"emoji": "📢",
"requires": { "bins": ["python3", "ffmpeg"], "apps": ["Airfoil"], "env": ["ELEVENLABS_API_KEY"], "skills": ["elevenlabs"], "platform": "macos" },
},
}


Announcer

通过 Airfoil 和 ElevenLabs,将 TTS 播报内容输出至 AirPlay 扬声器。

工作原理

  1. 通过 ElevenLabs 生成语音(高质量 opus → 立体声 MP3)
  2. 通过 Airfoil 连接至 AirPlay 扬声器
  3. 播放可选的提示音(锣声),随后播报内容
  4. 播放完成后断开扬声器连接

设置

请参阅 SETUP.md 了解先决条件和详细设置说明。

使用方法

# 向所有已配置的扬声器播报
python3 skills/announcer/scripts/announce.py "晚餐准备好了!"

# 仅向指定扬声器播报
python3 skills/announcer/scripts/announce.py "该起床了!" --speakers "儿童房"

# 跳过提示音
python3 skills/announcer/scripts/announce.py "快速通知" --no-gong

文件结构

announcer/
├── SKILL.md
├── assets/
│   └── gong_stereo.mp3      # 播报提示音
└── scripts/
    └── announce.py          # 主播报脚本

用户配置文件(不属于技能包):

~/clawd/announcer/
└── config.json              # 扬声器列表、语音、音频设置
3 次点击  ∙  0 人收藏  
登录后收藏  
目前尚无回复
0 条回复
About   ·   Help   ·    
OA0 - Omni AI 0 一个探索 AI 的社区
沪ICP备2024103595号-2
Developed with Cursor