Logo di Voice Hooks

Voice Hooks

Community
johnmatthewtennant

MCP server plugin for voice input and output in Claude Code

Autorejohnmatthewtennant
Repositorymcp-voice-hooks
LinguaTypeScript
Fork
33
Stelle
125
Strumenti disponibili
0
Tipo di trasportostdio
Categorie
Link
  • Collega gli strumenti ai flussi di lavoro IA

    Voice Hooks mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • 0 strumenti disponibili

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni quando forniti dal server.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse open source

    125 stelle e 33 fork nel repository collegato.

Voice Mode for Claude Code

Voice Mode for Claude Code allows you to have a continuous two-way conversation with Claude Code, hands-free.

It uses the new Claude Code hooks to deliver voice input to Claude while it works.

This lets you speak continuously to Claude - interrupt, redirect, or provide feedback without stopping what Claude is doing.

Optionally enable text-to-speech to have Claude speak back to you.

Voice recognition and text-to-speech are handled by the browser, so there is nothing to download, and no API keys are needed.

Demo Video

Demo Video

Requirements

  • Claude Code 2.1.69 or later (run claude --version to check)
  • macOS (for system text-to-speech)
  • Chrome or Safari (for speech recognition)

Installation

Installation is easy.

1. Install Claude Code

bash
npm install -g @anthropic-ai/claude-code

2. Install Voice Mode

Add the following to any Claude Code settings file (~/.claude/settings.json, .claude/settings.json, or .claude/settings.local.json):

json
{
  "extraKnownMarketplaces": {
    "mcp-voice-hooks-marketplace": {
      "source": {
        "source": "git",
        "url": "https://github.com/johnmatthewtennant/mcp-voice-hooks.git"
      }
    }
  },
  "enabledPlugins": {
    "mcp-voice-hooks-plugin@mcp-voice-hooks-marketplace": true
  }
}

Restart Claude Code. Set "mcp-voice-hooks-plugin@mcp-voice-hooks-marketplace" to false to temporarily disable.

Usage

1. Start Claude Code

bash
claude

2. Start Listening

The browser interface will automatically open after 3 seconds (http://localhost:5111).

Click "Start Listening"

3. Speak

Say something to Claude. You will need to send one message in the Claude Code CLI to start the conversation.

4. Trigger Word Mode (Optional)

By default, utterances are sent automatically when you pause. You can switch to "Wait for Trigger Word" mode in the browser interface:

  1. Toggle to "Wait for Trigger Word" mode
  2. Enter a trigger word (e.g., "send", "claude", "go")
  3. Speak your message(s) - they will queue up in the browser
  4. Say your trigger word to send all queued messages at once (or click "Send Now")

The trigger word is case-insensitive and will be automatically removed from your message before sending.

Browser Compatibility

  • ✅ Chrome: Full support for speech recognition, browser text-to-speech, and system text-to-speech
  • ⚠️ Safari: Full support for speech recognition and system text-to-speech, but browser text-to-speech cannot load high-quality voices
  • ❌ Edge: Speech recognition not working on Apple Silicon (language-not-supported error)

Voice responses

There are two options for voice responses:

  1. Browser Text-to-Speech
  2. System Text-to-Speech

Selecting and downloading high quality System Voices (Mac only)

Mac has built-in text to speech, but high quality voices are not available by default.

You can download high quality voices from the system voice menu: System Settings > Accessibility > Spoken Content > System Voice

Click the info icon next to the system voice dropdown. Search for "Siri" to find the highest quality voices. You'll have to trigger a download of the voice.

Once it's downloaded, you can select it in the Browser Voice (Local) menu in Chrome.

Test it with the bash command:

bash
say "Hi, this is your Mac system voice"

To use Siri voices with voice-hooks, you need to set your system voice and select "Mac System Voice" in the voice-hooks browser interface.

Other downloaded voices will show up in the voice dropdown in the voice-hooks browser interface so you can select them there directly, instead of using the "Mac System Voice" option.

There is a bug in Safari that prevents browser text-to-speech from loading high-quality voices after browser restart. This is a Safari Web Speech API limitation. To use high-quality voices in Safari you need to set your system voice to Siri and select "Mac System Voice" in the voice-hooks browser interface.

Known Limitations

  • Background agents don't notify in voice mode. When Claude launches background agents (via the Agent tool), their completion notifications appear in the conversation text but don't trigger hooks. This means you won't hear a voice notification when a background task finishes. Workaround: Manually check background agent status, or avoid using background agents during voice sessions. (Verified with Claude Code 2.1.69, March 2026)

Uninstallation

Remove the extraKnownMarketplaces and enabledPlugins entries from your settings file and restart Claude Code.

Alternative: Manual Installation

If you prefer not to use the plugin system, you can install manually:

bash
npx mcp-voice-hooks@latest install-hooks
claude mcp add voice-hooks npx mcp-voice-hooks@latest

To uninstall:

bash
claude mcp remove voice-hooks
npx mcp-voice-hooks uninstall

Configuration

Port Configuration

The default port is 5111. To use a different port, set the MCP_VOICE_HOOKS_PORT environment variable in your project's .claude/settings.local.json:

json
{
  "env": {
    "MCP_VOICE_HOOKS_PORT": "8080"
  }
}

This environment variable is used by both:

  • The MCP server to determine which port to listen on
  • The Claude Code hooks to connect to the correct port

Note: Setting this in .claude/settings.local.json is the recommended approach. The environment variable will be available to both the MCP server process and the hook commands.

Network exposure

The server listens on 127.0.0.1 only. This matters more than a normal localhost service: POST /api/potential-utterances delivers text to Claude as if you had spoken it, in a session that can edit files and run commands, and GET /api/conversation returns the transcript. There is no authentication, so reachability is the whole boundary.

Cross-origin browser requests are also refused outright — not just hidden by CORS — so a page on another site cannot post utterances into your session from a tab you happen to have open.

HTTPS (for access from other devices)

Browsers block microphone access on insecure origins. HTTPS is enabled automatically — the server generates a self-signed certificate on first startup and serves HTTPS on port 5112 (HTTP port + 1).

Because the server binds loopback by default, using another device is opt-in:

json
{
  "env": {
    "MCP_VOICE_HOOKS_BIND": "0.0.0.0"
  }
}

Then open https://<your-hostname>.local:5112 on the other device and accept the self-signed certificate warning. Your hostname's HTTPS origin is allowed automatically; add any others with MCP_VOICE_HOOKS_EXTRA_ORIGINS (comma-separated).

Only do this on a network you trust. While it is set, anything that can reach the port — every other device on that Wi-Fi, and any VPN or tailnet interface the machine is on — can drive your Claude session and read the conversation. The server prints a warning at startup when it is not bound to loopback.

To customize the HTTPS port:

json
{
  "env": {
    "MCP_VOICE_HOOKS_HTTPS_PORT": "8443"
  }
}

To regenerate the certificate (e.g., after a hostname change), delete the certs/ directory and restart, or run ./scripts/generate-certs.sh.

Browser Auto-Open

When running in MCP-managed mode, the browser will automatically open if no frontend connects within 3 seconds. To disable this behavior:

json
{
  "env": {
    "MCP_VOICE_HOOKS_AUTO_OPEN_BROWSER": "false"
  }
}

Installazione

TypingMind
Prerequisiti:

Node.js 18+

{
  "mcpServers": {
    "voice-hooks": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-voice-hooks@latest",
        "install-hooks"
      ],
      "env": {
        "MCP_VOICE_HOOKS_PORT": "5111",
        "MCP_VOICE_HOOKS_AUTO_OPEN_BROWSER": "true"
      }
    }
  }
}

Usa MCP Voice Hooks con più modelli IA

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso Voice Hooks, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura MCP.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura MCP e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con Questo dispositivo selezionato
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi Voice Hooks come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di Voice Hooks.
  4. Salva l'elenco dei server.
  5. Aggiorna per verificare che il connettore sia ancora pronto.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "voice-hooks": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-voice-hooks"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di Voice Hooks, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di Voice Hooks.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare Voice Hooks per aiutarmi con questa attività?
Voice Hooks
Certo. Ho letto.
Ecco cosa ho trovato con Voice Hooks.

Domande frequenti

A cosa serve il server MCP Voice Hooks?

Voice Hooks è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare Voice Hooks MCP con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare Voice Hooks con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP Voice Hooks con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando Voice Hooks, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego Voice Hooks MCP a TypingMind?

Voice Hooks funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre Voice Hooks MCP in TypingMind?

Voice Hooks mette a disposizione funzionalità MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare Voice Hooks MCP?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se Voice Hooks richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇