CLI, Trigger Daemon & Setup
Run directly from PowerShell, Bash, Task Scheduler, or any OpenAI-compatible client.
1. Install & Pre-Warm Models
# Fast Kokoro-82M + Antigravity plugin + background trigger daemon (Windows)
.\setup.ps1 -InstallPlugin -StartDaemon
# Also install isolated CUDA GPU venv + Qwen3-TTS 1.7B CustomVoice
.\setup.ps1 -InstallPlugin -InstallQuality -PreloadQwenModel 1.7b-custom -StartDaemon
2. Everyday CLI Commands
# Fast speech with chime (auto-routes through warm daemon)
.\speech-tool.ps1 speak "Deployment succeeded." --chime done
# Native CUDA C++ NVIDIA Magpie 357M (NeMo-Speech.cpp)
.\speech-tool.ps1 speak "Morning briefing ready via Magpie Aria." --profile magpie --voice Aria --speed 1.05
# Attention notification
.\speech-tool.ps1 notify attention "Antigravity needs your input."
# High-quality GPU narration with natural-language style instruction
.\speech-tool.ps1 generate "Good morning Roshi. Here is your briefing." `
--profile quality --voice Ryan `
--instruct "Speak warmly and calmly like a studio narrator" `
--out "$HOME\RoshiSpeech\briefing.wav" --play
# Check GPU, audio devices, cached models, and daemon health
.\speech-tool.ps1 doctor --profile all
3. OpenAI-Compatible Local TTS Endpoint
curl -s -X POST http://127.0.0.1:8765/v1/audio/speech \
-H "Content-Type: application/json" \
-d '{"model":"tts-1","voice":"nova","input":"Hello from 100% local Kokoro TTS.","response_format":"mp3"}' \
--output hello.mp3