โ† Back to Speech & Transcription
Speech & Transcription by @odrobnik

announcer

Announce text throughout the house via AirPlay speakers using Airfoil +

0
Source Code

Announcer

Play TTS announcements through AirPlay speakers via Airfoil and ElevenLabs.

How It Works

  1. Generate speech via ElevenLabs (high-quality opus โ†’ stereo MP3)
  2. Connect to AirPlay speakers via Airfoil
  3. Play an optional chime (gong) followed by the announcement
  4. 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