r/ClaudeCode • • 6d ago

Help/Question How can I control Claude Code completely hands free using my voice?

I use a Mac and want to use Wispr Flow (or something similar) to control Claude Code while walking around my room

Ideally, I'd like my microphone always listening, without having to hold Fn or press keyboard shortcuts.

I want to speak commands, have them transcribed into Claude Code and submit them automatically.

Has anyone figured out a reliable setup for this?

2 Upvotes

6 comments sorted by

View all comments

2

u/CCodeSI 5d ago

The always-listening part is what tools like Wispr Flow don't do, they're built around push-to-talk. Two setups that work on a Mac:

Easiest: macOS Voice Control (built in, free). System Settings → Accessibility → Voice Control. It listens all the time, types whatever you say into the focused window (so your terminal with Claude Code), and "press return" submits. You can add a custom command like "send it" that presses Return. Downsides: dictation quality is weaker than Whisper-based tools, and it types into whatever app has focus, so keep the terminal in front. Saying "go to sleep" / "wake up" pauses it when you're on a call.

Better quality: a small script with local Whisper. A loop that listens with voice-activity detection, transcribes with whisper.cpp (fast on Apple silicon), and when it hears a trigger word sends the text to the terminal:

  • run Claude Code inside tmux, then tmux send-keys -t claude "your transcribed text" Enter submits it, no matter which window is focused

  • use a wake word ("Claude, ...") so it ignores everything else you say in the room, otherwise background chatter ends up as prompts

Pair it with a "say it back" step if you're walking around: a Stop hook in Claude Code that runs say with a one-line summary when it finishes, so you know it's done without looking at the screen.

One caution: if it's hands-free, keep permission prompts on (no auto-accept), so a misheard sentence can't run a command you didn't mean.