explaingit

rockeverm3m/airgent-play2

Analysis updated 2026-05-18

1PythonAudience · vibe coderComplexity · 2/5LicenseSetup · moderate

TLDR

A tool that makes AI agents speak task results out loud through AirPlay speakers instead of only sending text notifications.

Mindmap

mindmap
  root((repo))
    What it does
      Agent speaks results
      Uses AirPlay 2 speakers
      Local text to speech
      Works offline
    Tech stack
      Python
      CosyVoice TTS
      pyatv RAOP
      ffmpeg
    Use cases
      Notify on task done
      Announce download finish
      Pipe script output to speech
    Audience
      Vibe coders
      Agent builders
      Mac power users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Have a coding agent announce when a long build or test run finishes

USE CASE 2

Get a spoken alert from a cron job or download script without checking your phone

USE CASE 3

Broadcast a training run's final accuracy through a speaker in another room

USE CASE 4

Chain the tool to the end of any shell command to hear its last line of output

What is it built with?

PythonCosyVoicepyatvffmpegAirPlay 2DLNA

How does it compare?

rockeverm3m/airgent-play2a-bissell/unleash-liteabhiinnovates/whatsapp-hr-assistant
Stars111
LanguagePythonPythonPython
Setup difficultymoderatehardhard
Complexity2/54/53/5
Audiencevibe coderresearcherdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

macOS only, needs ffmpeg and at least one AirPlay 2 speaker on the same network.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

Airgent Play 2 gives your AI agents a voice. Instead of only sending you a text message when a background task finishes, an agent can speak the result out loud through any AirPlay 2 or DLNA speaker in your home, like a HomePod, a soundbar, or studio monitors. The idea is simple: a script or agent finishes a job, such as a download, a data processing run, or a model training session, and calls a command with a short message. That message is converted to speech using a local text to speech engine called CosyVoice 3.0, then streamed to a chosen speaker using the AirPlay protocol. Nothing is sent over the internet, so it works fully offline. If CosyVoice is not installed, the tool falls back to the built in macOS speech command. You can use it in several ways. Any agent or script that can run shell commands can simply call the tool with a message. Python based agents or scripts can import it as a module and call functions directly. It can also read messages piped in from another program's output, so you can chain it at the end of a build or test command. A webhook option that lets other programs trigger speech over HTTP is planned but not yet built. Setup requires a Mac, ideally with Apple Silicon, Python 3.12 or newer, the ffmpeg tool, and at least one AirPlay 2 speaker on the same network. Installation is a single pip command, or you can clone the repository and install it from source. You can set a default speaker so every call goes there automatically, or target a specific speaker by name each time. The project is released under the MIT license and is still early, with only one star and a small roadmap that includes Docker support for headless servers, multi room broadcasting, and Windows support through DLNA.

Copy-paste prompts

Prompt 1
Write a shell wrapper that pipes the output of my build script into airgent-play2 so I hear when it finishes
Prompt 2
Show me how to call airgent-play2 from a Python script using the notify and speak functions
Prompt 3
Help me set a default AirPlay speaker for airgent-play2 using an environment variable
Prompt 4
Write an agent system prompt instruction that tells my coding agent to speak a short summary with airgent-play2 after each task

Frequently asked questions

What is airgent-play2?

A tool that makes AI agents speak task results out loud through AirPlay speakers instead of only sending text notifications.

What language is airgent-play2 written in?

Mainly Python. The stack also includes Python, CosyVoice, pyatv.

What license does airgent-play2 use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is airgent-play2 to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is airgent-play2 for?

Mainly vibe coder.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.