Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

talk-to-claude 🎤

Voice MCP for natural conversations with Claude. Simple, elegant, wake-word activated.

Why?

Existing voice solutions loop endlessly, have too many features, and don't wait for you to actually speak. This MCP:

  • Waits for speech - VAD-based detection, only activates when you talk
  • Simple - ~400 lines of code, 10 config options
  • Just works - Install, configure API key, talk

Prerequisites

  • ffmpeg - Required for MP3 audio playback
    # macOS
    brew install ffmpeg
    
    # Ubuntu/Debian
    sudo apt install ffmpeg
    
    # Windows
    winget install ffmpeg
    

Installation

# Install via uvx (recommended)
uvx talk-to-claude

# Or via pip
pip install talk-to-claude

Quick Start

  1. Set your OpenAI API key:
export OPENAI_API_KEY=sk-...
  1. Add to Claude Code:
claude mcp add talk-to-claude -- uvx talk-to-claude
  1. Start a voice conversation:
claude converse

Configuration

All configuration via environment variables (sensible defaults provided):

Variable Default Description
OPENAI_API_KEY (required) Your OpenAI API key
TTC_VOICE nova TTS voice: alloy, echo, fable, onyx, nova, shimmer
TTC_SPEED 1.0 Speech speed (0.25-4.0)
TTC_VAD_AGGRESSIVENESS 2 VAD sensitivity (0-3, higher = stricter)
TTC_SILENCE_MS 800 Silence before speech ends (ms)
TTC_MIN_SPEECH_MS 500 Minimum speech to process (ms)
TTC_WAKE_WORD (none) Optional wake word (e.g., "hey claude")
TTC_LISTEN_TIMEOUT 30 Max seconds to wait for speech
TTC_DEBUG false Enable debug logging

MCP Tools

converse

The main tool for voice conversations.

{
  "message": "Hello! How can I help you today?",
  "wait_for_response": true,
  "voice": "nova",
  "speed": 1.0
}

Returns:

{
  "status": "success",
  "message": "Hello! How can I help you today?",
  "transcription": "I need help with my code"
}

speak

Text-to-speech only, no listening.

{
  "message": "Got it, let me look into that."
}

listen

Listen only, no speaking. Great for continuing a conversation.

{
  "timeout": 30,
  "wake_word": "hey claude"
}

Wake Word Mode

Set TTC_WAKE_WORD=hey claude to enable passive listening that only activates when you say "Hey Claude":

export TTC_WAKE_WORD="hey claude"
claude converse

Now it will wait quietly until you say the wake word, then respond.

How It Works

  1. VAD (Voice Activity Detection) using WebRTC VAD detects when you start speaking
  2. Recording continues until silence is detected (configurable)
  3. Whisper transcribes your speech to text
  4. OpenAI TTS speaks Claude's response
  5. Repeat!

Compared to VoiceMode

Feature talk-to-claude VoiceMode
Lines of code ~400 2000+
Config options 10 100+
Loops endlessly No Yes
Wake word Yes Yes
Multiple agents No Yes
DJ ducking No Yes

We focus on doing one thing well: natural voice conversations with Claude.

Development

# Clone
git clone https://github.com/bacharyehya/talk-to-claude
cd talk-to-claude

# Install dev dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Run locally
python -m talk_to_claude.server

License

MIT

Metadata

Release files for talk-to-claude 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 talk-to-claude 0.1.0
File Size Uploaded Provenance
talk_to_claude-0.1.0.tar.gz 12.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for talk-to-claude 0.1.0
File Interpreter ABI Platform
talk_to_claude-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 28.2 kB

Release files / talk_to_claude-0.1.0.tar.gz

Download URL talk_to_claude-0.1.0.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
61dc123c2aaa6ff5af893c4b198b505f18da0ee5ed7f14be2ed8d9ce9d6e3b2f
BLAKE2b-256 checksum
How to use checksums
179930786bd1d2f1d2407233a34b1f593005639d10a7866296747c6b670fc36c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

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

Download URL talk_to_claude-0.1.0-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3556fd3bd9093ca7a559dbe3a25f16904d2d73c3080d719fb5d38f5a46cf4696
BLAKE2b-256 checksum
How to use checksums
c544edd7b505b17fd93eadd02a90af417922848594cd7784391f4110186fba83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Security for talk-to-claude 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
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