🔗 Official Documentation: Claude Code Documentation
📦 Download/Install: npm install -g @anthropic-ai/claude-code
🏷️ Version Requirements: Claude Code v0.1.0+
Claude Code is Anthropic's official CLI for Claude that enables powerful AI-assisted coding directly from your terminal. Voice Mode enhances Claude Code by adding natural voice conversation capabilities, allowing you to speak your coding requests and hear Claude's responses.
- Claude Code installed (
npm install -g @anthropic-ai/claude-code) - See npm setup guide to avoid sudo - Python 3.10 or higher
- uv package manager (
curl -LsSf https://astral.sh/uv/install.sh | sh) - OpenAI API key (or compatible service)
- System audio dependencies installed (see main README)
# Add Voice Mode to Claude Code (user-level)
claude mcp add --scope user voice-mode uvx voice-mode
# Set your OpenAI API key
export OPENAI_API_KEY="your-openai-key"
# Start a voice conversation
claude converseThe easiest way is using Claude Code's MCP management:
# Add at user level (recommended)
claude mcp add --scope user voice-mode uvx voice-mode
# Or add at project level
claude mcp add voice-mode uvx voice-modeClaude Code can manage environment variables for you:
# Add with environment variable
claude mcp add voice-mode --env OPENAI_API_KEY=your-key uvx voice-modeOr set in your shell profile:
export OPENAI_API_KEY="your-openai-key"For advanced configuration, you can set these environment variables:
# Required
export OPENAI_API_KEY="your-key"
# Optional - Use local Kokoro TTS
export VOICEMODE_TTS_BASE_URL="http://127.0.0.1:8880/v1"
export VOICEMODE_TTS_VOICE="af_sky"
# Optional - Use local Whisper STT
export VOICEMODE_STT_BASE_URL="http://127.0.0.1:2022/v1"
# Optional - Debug mode
export VOICEMODE_DEBUG="true"-
Check Installation:
# List installed MCP servers claude mcp list -
Test Voice Mode:
# Start Claude Code claude # In Claude, try: # "Let's have a voice conversation" # "Can you hear me?"
-
Verify MCP Connection:
# Check MCP server status claude mcp status voice-mode
# Start Claude Code
claude
# Then in Claude:
"Let's talk about this code"
"Can you explain what this function does?"
"Help me refactor this class"# Navigate to your project
cd my-project
# Start Claude with voice
claude
# Voice commands:
"Can you help me debug this error?"
"Let's write a test for this function"
"What's the best way to optimize this?"- Run
claude mcp listto verify Voice Mode is installed - Check
claude mcp status voice-modefor errors - Ensure your OPENAI_API_KEY is set:
echo $OPENAI_API_KEY
- Check terminal has microphone permissions (macOS System Preferences)
- Run audio diagnostics:
python scripts/diagnose-audio.py - Try setting
VOICEMODE_DEBUG=truefor detailed logs
- Update Claude Code:
npm update -g @anthropic-ai/claude-code - Reinstall Voice Mode:
claude mcp remove voice-mode && claude mcp add voice-mode uvx voice-mode - Check logs:
claude --debug
- Grant terminal microphone access in System Preferences > Privacy & Security
- May need to restart terminal after granting permissions
- Ensure PulseAudio or PipeWire is running
- May need to add user to
audiogroup:sudo usermod -a -G audio $USER
- Native Windows support requires WSL2
- Follow WSL2 audio setup guide
To use local services for complete privacy:
-
Start Kokoro TTS:
# Using Claude Code claude "start kokoro" # Or manually uvx kokoro-tts serve
-
Configure Voice Mode:
claude mcp add voice-mode \ --env VOICEMODE_TTS_BASE_URL=http://127.0.0.1:8880/v1 \ --env VOICEMODE_STT_BASE_URL=http://127.0.0.1:2022/v1 \ uvx voice-mode
For room-based voice conversations:
- Set up LiveKit credentials
- Configure in Claude Code:
claude mcp add voice-mode \ --env LIVEKIT_URL=wss://your-app.livekit.cloud \ --env LIVEKIT_API_KEY=your-key \ --env LIVEKIT_API_SECRET=your-secret \ uvx voice-mode
- 📚 Voice Mode Documentation
- 🔧 Configuration Reference
- 🎤 Local STT/TTS Setup
- 🏠 LiveKit Integration
- 💬 Claude Code Documentation
- 🐛 Troubleshooting Guide
- 💻 Claude Code GitHub
Need Help? Join our Discord community or check the FAQ