Skip to main content
Glama

Overview

agents-voice equips AI coding agents (Antigravity, Cursor, Zed, Claude, agents-harness) with a native voice tool (voice_speak). Instead of reading long code diffs or screen-scraping text, the agent formulates a concise, natural spoken summary (1–2 sentences) directly to the developer's ears upon completing tasks.

Highlights

  • Multi-Provider Support: Out-of-the-box support for Azure Speech (48kHz DragonHD), OpenRouter (gpt-audio PCM16 streaming, gpt-4o-mini-tts), OpenAI, Google Gemini 2.5 TTS, ElevenLabs, and custom OpenAI-compatible local endpoints (e.g., Kokoro, LocalAI).

  • Zero Heavy Dependencies: Pure Python standard library (urllib.request, winsound / winmm on Windows, native OS audio players on macOS/Linux). No ffmpeg, no pygame, no C compiler required.

  • Standalone or HUD Synergy: Plays directly through OS audio when standalone. If the Dumbo desktop overlay is running (127.0.0.1:12480), optionally routes through Dumbo's Veadio HUD for synchronized word-by-word highlighted playback.

  • Local Credentials: Kept securely on the local machine in ~/.agents/voice.json with fallback discovery from environment variables and existing Dumbo settings.


Related MCP server: Voice MCP Server

Installation

pip install agents-voice

Or install in editable mode from source:

git clone https://github.com/Lolaplex/agents-voice.git
cd agents-voice
pip install -e .

Configuration

Credentials and settings are saved to ~/.agents/voice.json:

Azure Speech (Default)

agents-voice config --provider azure --key "YOUR_AZURE_KEY" --region "swedencentral" --voice "de-DE-Seraphina:DragonHDLatestNeural"

OpenRouter (Steerable & GPT Audio Streaming)

agents-voice config --provider openrouter --key "YOUR_OPENROUTER_KEY" --model "openai/gpt-4o-mini-tts" --voice "marin"

OpenAI

agents-voice config --provider openai --key "YOUR_OPENAI_KEY" --model "gpt-4o-mini-tts" --voice "marin"

Google Gemini

agents-voice config --provider gemini --key "YOUR_GEMINI_KEY" --model "gemini-2.5-flash-preview-tts" --voice "Kore"

ElevenLabs

agents-voice config --provider elevenlabs --key "YOUR_ELEVENLABS_KEY" --voice "JBFqnCBsd6RMkjVDRZzb"

Custom / Local Endpoint (e.g. Kokoro, LocalAI)

agents-voice config --provider custom --base-url "http://127.0.0.1:8880/v1" --voice "af_heart"

MCP Server Setup

Add to your MCP configuration (e.g. ~/.cursor/mcp.json, ~/.agents/mcp.json, or Claude Desktop config):

{
  "mcpServers": {
    "agents-voice": {
      "command": "python",
      "args": ["-m", "agents_voice", "serve"]
    }
  }
}

MCP Tools

Tool

Description

voice_speak(message, provider?, model?, voice?)

Synthesizes and plays or buffers a concise 1–2 sentence spoken summary directly to the user.

voice_play_latest()

Plays the most recent speech summary stored in the voice inbox.

voice_stop()

Immediately terminates any currently playing speech audio.

voice_status()

Reports backend status, configured providers, active voice, mode, and bridge availability.


CLI Reference

Command

Description

agents-voice speak "Text to speak"

Speaks text directly via the active provider.

agents-voice speak --wait "Text"

Speaks text and waits until playback finishes.

agents-voice test

Plays a quick test speech sample to verify audio output.

agents-voice play

Plays the latest voice message stored in the mailbox.

agents-voice listen

Runs the background hotkey daemon listening for the global shortcut (e.g. Alt+V).

agents-voice stop

Cuts off any running audio playback immediately.

agents-voice status

Prints active provider configuration and status JSON.

agents-voice config [options]

Updates provider, model, voice, speed, region, mode, hotkey, chime, or API keys.

agents-voice serve

Runs the FastMCP server via stdio transport and launches hotkey listener if in inbox mode.


License

MIT License. See LICENSE for details.

Available Tools

4 tools
voice_play_latestA

Plays the most recent speech summary stored in the voice inbox.

Inputs: no named parameters. Returns: result

voice_speakA

Speak a short, natural voice summary (1-2 sentences) directly to the user's ears.

Use this tool at the end of substantive turns to tell the user what was done, without reading code, diffs, or markdown formatting. Keep it concise, natural, and friendly.

Args: message: The concise spoken text (e.g. 'Hab den Bug gefixt und Tests sind grün.'). provider: Optional override ('openrouter', 'openai', 'gemini', 'elevenlabs', 'azure', 'custom'). model: Optional model override (e.g. 'openai/gpt-4o-mini-tts', 'elevenlabs/eleven-v4-turbo'). voice: Optional voice override (e.g. 'marin', 'cedar', 'Kore', 'de-DE-Seraphina:DragonHDLatestNeural').

Inputs: message (required), model, voice, provider. Returns: result

voice_statusA

Checks the status of the voice output system, active provider, configured keys, and bridge.

Inputs: no named parameters. Returns: result

voice_stopA

Immediately stops any currently playing speech audio if the user requests silence.

Inputs: no named parameters. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 4 tools

    Disambiguation4/5

    The tools are mostly clearly distinct: speak emits new speech, stop halts playback, status reports system state, and play_latest replays the latest stored summary. The only mild ambiguity is between voice_speak and voice_play_latest, since both result in spoken audio, but their descriptions distinguish creation from replay.

    Naming Consistency5/5

    All tools use a consistent snake_case voice_verb pattern: voice_play_latest, voice_speak, voice_status, voice_stop. The shared prefix and predictable verb style make the surface easy to scan.

    Tool Count5/5

    Four tools is well-scoped for a voice-output helper: speak, replay latest, check status, and stop. Each tool has a clear purpose and none feels superfluous.

    Completeness4/5

    The set covers the core lifecycle: producing speech, replaying the latest summary, checking provider/status, and stopping playback. Minor gaps like pause/resume or listing voice history are not essential for the apparent agent workflow.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables coding agents to speak aloud using text-to-speech functionality. Works with agents running inside devcontainers and provides configurable voice settings for creating chatty AI companions.
      6
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables an AI assistant to have its recent code actions summarized aloud through system speakers, using offline native voices or cloud neural voices. It supports asynchronous playback and voice listing so users can hear what the agent did without reading the full response.
      3
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables agents to synthesize speech through a local OpenAI-compatible TTS service, exposing stdio tools that speak text aloud, toggle voice mode on or off, and list available voices without extra dependencies. Its settings stay synchronized with an optional sidebar panel, so one server-side switch governs all automatic narration.
      MIT