Source Code
Announcer
Play TTS announcements through AirPlay speakers via Airfoil and ElevenLabs.
How It Works
- Generate speech via ElevenLabs (high-quality opus โ stereo MP3)
- Connect to AirPlay speakers via Airfoil
- Play an optional chime (gong) followed by the announcement
- Disconnect speakers after playback
Setup
See SETUP.md for prerequisites and setup instructions.
Usage
# 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
File Structure
announcer/
โโโ SKILL.md
โโโ assets/
โ โโโ gong_stereo.mp3 # Announcement chime
โโโ scripts/
โโโ announce.py # Main announcement script
User config (not part of skill):
~/clawd/announcer/
โโโ config.json # Speaker list, voice, audio settings