Skip to main content

Roshi's Speech MCP — Roshi meditating in a warm acoustic voice studio with glowing speaker medallion and soundwaves

Roshi's Speech MCP

100% Local Fast & High-Quality Speech Output, Audio Generation & Trigger Daemon
Antigravity Plugin · Claude Code & Codex Plugin · Open MCP 2.x Server · Standalone CLI · OpenAI-Compatible Local TTS API

Live Documentation Site · Audio Samples (Kokoro, Magpie, Qwen3) · Hooks & Trigger Daemon · PyPI (uvx) · Official MCP Registry · Glama


Why Roshi's Speech MCP?

Give Antigravity, your scripts, watch rules, and automations a 100% local voice — so your system can speak to you when builds finish, when an agent needs your attention, or when a Recorder/Signal event arrives, without cloud TTS APIs, latency spikes, or overlapping chaotic audio.

Just like Roshi's Transcription MCP, you get fast, native CUDA C++, and expressive high-quality local tiers side by side:

Profile Engine Hardware Speed / Footprint Best For
instant OS Native (System.Speech SAPI / say / espeak-ng) Any CPU ~50 ms · 0 downloads Guaranteed offline safety fallback
fast (default) Kokoro-82M (kokoro-onnx) CPU or GPU ~80–600 ms warm · ~350 MB Crisp, natural everyday updates, attention hooks, 50+ voices & voice blending (af_heart:0.6+am_michael:0.4)
magpie NVIDIA Magpie TTS 357M (NeMo-Speech.cpp + NanoCodec) NVIDIA GPU (CUDA C++) / CPU Fast native C++ · ~600 MB GGUF Zero-Python native GPU voices (Aria, Jason, John, Leo, Sofia) across 12 languages — shares the exact same nemo-speech runtime as Roshi's Transcription MCP
quality Qwen3-TTS (1.7B / 0.6B CustomVoice) NVIDIA GPU (CUDA) ~1–3s warm on RTX GPU · isolated venv Expressive studio-grade speech with natural-language style/emotion instructions (instruct)
design Qwen3-TTS (1.7B-VoiceDesign) NVIDIA GPU (CUDA) ~1–3s warm on RTX GPU Invent any custom voice from a plain-English description
clone Qwen3-TTS (1.7B-Base / 0.6B-Base) NVIDIA GPU (CUDA) ~1–3s warm on RTX GPU 3-second zero-shot voice cloning from any local audio clip

Triggered by Anything (One Clean Non-Overlapping Speaker Queue)

Roshi listening hands-free over tea as his computer delivers a glowing local spoken briefing and chime notification

  1. MCP Tools (speak, notify, generate_audio, play_audio, stop_speaking, manage_voice_profiles, manage_settings, manage_trigger_daemon, manage_hooks).
  2. Antigravity Lifecycle Hooks (hooks.json + run_hook.py): Non-blocking spoken alerts when Antigravity asks a question (ask_question), hits an error, pauses at a limit, or finishes a turn. Toggle anytime with manage_hooks(action="enable"|"disable").
  3. Warm Local Trigger Daemon (http://127.0.0.1:8765):
    • Keeps models warm in memory and serializes audio from all callers into one priority queue (with interrupt=True, quiet hours, mute toggle, and cooldown deduplication).
    • POST /speak, POST /notify, POST /chime, POST /play, POST /generate, POST /stop, GET /health.
    • OpenAI-Compatible POST /v1/audio/speech (tts-1 -> Kokoro fast; tts-1-hd -> Qwen3-TTS quality) so Open WebUI, Home Assistant, n8n, or any OpenAI TTS client works 100% locally.
  4. Drop-Folder Inbox Watcher (~/RoshiSpeech/inbox/): Drop any .txt or .json file from a batch script, cron job, or external automation and the daemon speaks it immediately.
  5. Cross-MCP Integration: Plug speech-tool.ps1 notify attention "..." directly into Roshi's Recorder MCP or Roshi's Signal MCP watch rules.

Quick Setup (Windows)

# Install plugin into ~/.gemini/config/plugins/roshi-speech-mcp + download fast Kokoro-82M models + start trigger daemon
.\setup.ps1 -InstallPlugin -StartDaemon

# Also install isolated CUDA GPU venv for high-quality Qwen3-TTS
.\setup.ps1 -InstallPlugin -InstallQuality -PreloadQwenModel 1.7b-custom -StartDaemon

Quick CLI Examples

# Speak immediately (fast Kokoro-82M)
.\speech-tool.ps1 speak "Hey Roshi, the deployment succeeded." --chime done

# Native CUDA C++ NVIDIA Magpie 357M (NeMo-Speech.cpp)
.\speech-tool.ps1 speak "Morning briefing ready via NVIDIA Magpie." --profile magpie --voice Aria --speed 1.05

# Voice blending (Kokoro-82M)
.\speech-tool.ps1 speak "Blending two Kokoro voices." --voice "af_heart:0.6+am_michael:0.4"

# Attention notification
.\speech-tool.ps1 notify attention "Antigravity needs your input."

# High-quality GPU narration with style instruction
.\speech-tool.ps1 generate "Welcome to your morning briefing." --profile quality --voice Ryan --instruct "Speak warmly and calmly like a studio narrator" --out "$HOME\RoshiSpeech\briefing.wav" --play

# Trigger over localhost HTTP from any script
Invoke-RestMethod -Uri "http://127.0.0.1:8765/notify" -Method Post -ContentType "application/json" -Body '{"event_type":"done","message":"Tests passed!"}'

Metadata

Release files for roshi-speech-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for roshi-speech-mcp 0.1.0
File Size Uploaded Provenance Actions
roshi_speech_mcp-0.1.0.tar.gz 52.2 kB Without provenance Details for roshi_speech_mcp-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for roshi-speech-mcp 0.1.0
File Interpreter ABI Platform Actions
roshi_speech_mcp-0.1.0-py3-none-any.whl Python 3 none any Details for roshi_speech_mcp-0.1.0-py3-none-any.whl

Total release size: 107.0 kB

Release files / roshi_speech_mcp-0.1.0.tar.gz

Download URL roshi_speech_mcp-0.1.0.tar.gz
Size 52.2 kB
Tags Source
SHA-256 checksum
How to use checksums
65d8409b78254f3579220d0f6844c8386f7907d050f4b6e97e4bbf6cd8cc3ca0
BLAKE2b-256 checksum
How to use checksums
a55216b92ddf87adb439ccb363d9b8ada76bc560deb815157cdb0b8d75cf0c29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / roshi_speech_mcp-0.1.0-py3-none-any.whl

Download URL roshi_speech_mcp-0.1.0-py3-none-any.whl
Size 54.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc6a62921f4c7cf6b13c23e97de9fd0c6e98ab3c2c9bc37254cde1232201905b
BLAKE2b-256 checksum
How to use checksums
4854ef2e3e889a6a5be0ce6b0717de3d48f1b88cfafef38061a6a5502cd6c4d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for roshi-speech-mcp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page