feat: add macOS say as alternative TTS engine#989
Open
hydrohelix wants to merge 4 commits intodanielmiessler:mainfrom
Open
feat: add macOS say as alternative TTS engine#989hydrohelix wants to merge 4 commits intodanielmiessler:mainfrom
hydrohelix wants to merge 4 commits intodanielmiessler:mainfrom
Conversation
Adds support for switching between ElevenLabs and macOS built-in `say` command, so users without an ElevenLabs API key (or who prefer local TTS) can still use voice notifications. Config via settings.json (`voice.tts_engine`) or `TTS_ENGINE` env var. Auto-falls back to macOS say when ElevenLabs key is missing. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Adds `voice` script for easy switching between ElevenLabs and macOS say, plus server management (restart, status, test, log tailing). Usage: voice say [name] [rate] | voice 11labs | voice status | voice test Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
install.sh now symlinks the voice script to /usr/local/bin/voice for universal PATH access. Falls back gracefully if permissions are denied. uninstall.sh removes the symlink. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Adds /mute and /unmute API endpoints (in-memory toggle, no restart needed) and corresponding `voice mute` / `voice unmute` CLI commands. Status and /health endpoint reflect muted state. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
saycommand as an alternative TTS engine alongside ElevenLabssettings.json(voice.tts_engine: "macos-say") orTTS_ENGINEenv varvoiceCLI script for easy engine switching and server managementinstall.shsymlinks the CLI to/usr/local/bin/voicefor universal accessChanges
VoiceServer/server.ts— TTS engine abstraction:speakWithSay()function, engine branching insendNotification(), updated/healthendpoint and startup logsVoiceServer/voice— New CLI:voice say [name] [rate],voice 11labs,voice status,voice test,voice restart,voice log,voice voicesVoiceServer/install.sh— SymlinksvoiceCLI to/usr/local/binwith permission fallbackVoiceServer/uninstall.sh— Removes the symlink on uninstall.gitignore— Adds.local-backup/for user customizationsConfiguration
{ "voice": { "tts_engine": "macos-say", "macos_say": { "voice": "Samantha", "rate": 200 } } }Or via env var:
TTS_ENGINE=macos-sayTest plan
voice sayswitches engine and restarts servervoice 11labsswitches back to ElevenLabsvoice statusshows correct engine and server healthvoice testproduces audible speech with both enginesELEVENLABS_API_KEYis missingcurl localhost:8888/healthreflects active engine in responseinstall.shcreates/usr/local/bin/voicesymlinkuninstall.shremoves the symlink🤖 Generated with Claude Code