By vlazic
Sound alerts, desktop notifications, and text-to-speech for Claude Code events
Sound alerts, desktop notifications, and text-to-speech for Claude Code events — get notified when tasks complete, permissions are needed, or subagents finish.
Stop — Claude finished a responseNotification — permission prompt or waiting for inputSubagentStop — a subagent/task completedclaude plugin install https://github.com/vlazic/claude-code-hooks-notify
That's it. Claude Code handles the rest automatically.
Set these environment variables in your shell profile:
~/.bashrc, ~/.zshrc, or equivalent$PROFILE)# Required for OpenAI TTS
export OPENAI_API_KEY="sk-..."
| Variable | Default | Description |
|---|---|---|
HOOK_ENABLE_SOUND | false | Play system sounds on events |
HOOK_SHOW_NOTIFICATION | false | Show desktop notifications |
HOOK_ENABLE_TTS | true | Enable text-to-speech announcements |
HOOK_TTS_ENGINE | openai | TTS engine: openai or espeak |
| Variable | Default | Description |
|---|---|---|
HOOK_OPENAI_MODEL | tts-1 | Model (tts-1 or tts-1-hd) |
HOOK_OPENAI_VOICE | alloy | Voice: alloy, echo, fable, onyx, nova, shimmer |
| Variable | Default | Description |
|---|---|---|
HOOK_ESPEAK_VOICE | en-us | Voice/language |
HOOK_ESPEAK_SPEED | 200 | Words per minute |
| Package | Purpose | Install |
|---|---|---|
pulseaudio-utils | Sound playback (paplay) | sudo apt install pulseaudio-utils |
libnotify-bin | Desktop notifications | sudo apt install libnotify-bin |
espeak | Free local TTS | sudo apt install espeak |
mpv | OpenAI TTS playback | sudo apt install mpv |
Native tools are used automatically: afplay, osascript, say.
For OpenAI TTS: install mpv via brew install mpv.
Built-in tools are used automatically:
System.Media.SoundPlayer via PowerShellSystem.Windows.Forms.NotifyIcon balloon tips via PowerShellSystem.Speech.Synthesis.SpeechSynthesizer (SAPI) via PowerShellFor OpenAI TTS: install mpv and ensure it's in your PATH.
This is a Claude Code plugin that registers three hooks for lifecycle events:
Each hook reads JSON context from stdin (provided by Claude Code), extracts the project name and event details, then triggers the configured combination of sound, notification, and TTS.
All functions fail silently if dependencies are missing — you won't get errors, just no output for that feature.
Claude Code passes JSON on stdin to each hook:
{
"cwd": "/path/to/project",
"notification_type": "permission_prompt",
"tool_name": "Bash",
"subagent_type": "Explore"
}
# Disable without removing
claude plugin disable claude-code-hooks-notify
# Re-enable
claude plugin enable claude-code-hooks-notify
# Update to latest version
claude plugin update claude-code-hooks-notify
# Uninstall
claude plugin uninstall claude-code-hooks-notify
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub vlazic/claude-code-hooks-notifyDesktop notifications showing what Claude Code is working on - stay informed even when the terminal is not in focus. Optional sound alerts and AI summaries
Audio notifications + AI-controlled config for Claude Code, Cursor IDE, and Codex CLI events. 26 hooks, native matcher routing, TTS, webhooks, status line, focus flow, rate-limit alerts. Auto-bridges to Cursor IDE 3.2.16+; native install via 'audio-hooks install --cursor' or 'audio-hooks install --codex'.
Audio feedback system with multilingual TTS announcements, AI-powered contextual messages, and sound effects for Claude Code. Transform your coding experience with intelligent voice feedback that keeps you informed without breaking your flow.
Smart notifications for Claude Code task statuses (Go implementation)
Native Windows toast notifications for Claude Code with window activation
Audio notifications for Claude Code hook events with customizable sounds and volume control