/ 目录 / 演练场 / VoiceMode
● 社区 mbailey 🔑 需要你的密钥

VoiceMode

作者 mbailey · mbailey/voicemode

Speak to Claude Code, hear it back — hands-free coding for pairing, accessibility, and flow-state sessions.

VoiceMode adds natural two-way voice to Claude Code via MCP. Uses Whisper for STT (local or API) and a configurable TTS (OpenAI, ElevenLabs, or local). Runs a small audio pipeline alongside your MCP server. Works best for short prompts and review reads, not 5-minute monologues.

为什么要用

核心特性

实时演示

实际使用效果

voicemode-mcp.replay ▶ 就绪
0/0

安装

选择你的客户端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "voicemode-mcp": {
      "command": "uvx",
      "args": [
        "voice-mode"
      ]
    }
  }
}

打开 Claude Desktop → Settings → Developer → Edit Config。保存后重启应用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "voicemode-mcp": {
      "command": "uvx",
      "args": [
        "voice-mode"
      ]
    }
  }
}

Cursor 使用与 Claude Desktop 相同的 mcpServers 格式。项目级配置优先于全局。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "voicemode-mcp": {
      "command": "uvx",
      "args": [
        "voice-mode"
      ]
    }
  }
}

点击 Cline 侧栏中的 MCP Servers 图标,然后选 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "voicemode-mcp": {
      "command": "uvx",
      "args": [
        "voice-mode"
      ]
    }
  }
}

格式与 Claude Desktop 相同。重启 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "voicemode-mcp",
      "command": "uvx",
      "args": [
        "voice-mode"
      ]
    }
  ]
}

Continue 使用服务器对象数组,而非映射。

~/.config/zed/settings.json
{
  "context_servers": {
    "voicemode-mcp": {
      "command": {
        "path": "uvx",
        "args": [
          "voice-mode"
        ]
      }
    }
  }
}

加入 context_servers。Zed 保存后热重载。

claude mcp add voicemode-mcp -- uvx voice-mode

一行命令搞定。用 claude mcp list 验证,claude mcp remove 卸载。

使用场景

实战用法: VoiceMode

Drive a Claude Code session hands-free while reading on another screen

👤 Devs who read docs or designs on one monitor while coding ⏱ ~30 min intermediate

何时使用: You're reading a design doc and want to dictate changes without alt-tabbing.

前置条件
  • Microphone + speakers — System audio configured — test with say "hello" or equivalent
  • Whisper model readyvoice-mode install-whisper downloads the local model
步骤
  1. Start voice
    Use voicemode. Listen for prompts and speak responses. Repeat after me: "ready"✓ 已复制
    → TTS plays "ready"
  2. Dictate a change
    [spoken] Update src/auth.ts — use bcrypt instead of plain SHA256 for passwords.✓ 已复制
    → Transcription correct; change applied; TTS confirms
  3. Review
    [spoken] Read me the diff.✓ 已复制
    → TTS reads diff in chunks, pausable

结果: A working session where your hands never leave what they were doing.

注意事项
  • TTS talking over your prompts — Enable push-to-talk mode or a wake word
搭配使用: filesystem

Code by voice for accessibility or RSI recovery

👤 Devs with RSI, low vision, or preferring speech input ⏱ ~60 min intermediate

何时使用: You can't type for a while and need to keep shipping.

前置条件
  • Tolerable ambient noise — Quiet room; headset mic beats laptop mic
步骤
  1. Baseline
    [spoken] Use voicemode. Read the latest git diff out loud, pausing between files.✓ 已复制
    → Clear TTS read
  2. Workflow
    [spoken] Refactor the user model in src/models/user.ts. Move password hashing into a method. Show me the plan first.✓ 已复制
    → Plan spoken; confirmation required before changes

结果: A full coding session without keyboard input.

注意事项
  • Code symbols mispronounced by TTS — Configure the TTS phoneme dictionary for common programming terms

组合

与其他 MCP 搭配,撬动十倍杠杆

voicemode-mcp + filesystem

Voice-dictated code changes land in the repo

I'll dictate changes; apply them in files after reading each back.✓ 已复制
voicemode-mcp + github

Dictate a PR description after voice-reviewing the diff

Read me the staged changes, then open a PR with a description I'll dictate.✓ 已复制

工具

此 MCP 暴露的能力

工具输入参数何时调用成本
start_listening mode: "ptt"|"vad" Begin a voice session free or OpenAI Whisper API
speak text: str, voice?: str Any time Claude wants to surface something audibly TTS provider-dependent
transcribe_last none Fetch what the user just said Whisper call
stop_listening none End voice session free

成本与限制

运行它的成本

API 配额
Local: free. OpenAI Whisper: $0.006/min. ElevenLabs TTS: ~$0.30/1k chars.
每次调用 Token 数
Audio pipelines are not token-costed directly
费用
Free with local stack; metered with cloud providers
提示
Local Whisper + Coqui TTS is totally free but lower quality — start cloud, downgrade later

安全

权限、密钥、影响范围

最小权限: microphone speakers
凭据存储: TTS/STT API keys in env
数据出站: Voice audio to TTS/STT provider if not local

故障排查

常见错误与修复

Mic not detected

System audio permission — grant terminal/Claude Code mic access

验证: `voice-mode test-mic` prints levels
TTS sounds robotic

Default is Coqui local — switch to OpenAI tts-1-hd via VOICE_MODE_TTS=openai

Lag between my speech and response

Use local Whisper-tiny for STT; cloud adds 500ms+

替代方案

VoiceMode 对比其他方案

替代方案何时用它替代权衡
macOS Dictation + say commandYou just want basic OS-level voiceNo integration with Claude's output — one-way only
Superwhisper / Wispr FlowYou want a polished native macOS dictation appNot MCP-integrated; no agent-level workflows

更多

资源

📖 阅读 GitHub 上的官方 README

🐙 查看未解决的 issue

🔍 浏览全部 400+ MCP 服务器和 Skills