Claude Corner
Bug Report Faster to Say Than to Type? Turn On /voice in Claude Code.
By Steven Sorensen ยท 23 Nov 2026

At a glance
- Run
/voiceonce and Claude Code turns what you say into text in the prompt box, so you can speak a long explanation and type file names. - Pick hold mode to review the words before you press Enter, or tap mode to start with one tap and send with the next.
- Set your language, move the dictation key off Space if needed, and cancel a recording without losing what you had typed.
Here is an example, not a case from the docs: say a login bug takes longer to type than to explain, so the prompt you send is shorter than the one in your head. Claude Code can turn speech into text in the prompt box, and you can mix dictation with typing.
Why it matters
Anthropic's guide says your speech appears in the prompt as you talk, and the transcript lands at your cursor. Transcription is tuned for coding words, does not use Claude tokens, and does not count toward /usage. It needs a claude.ai sign in and a local microphone, and the audio streams to Anthropic's servers instead of staying on your machine.
How to set up voice dictation
We built these steps from Anthropic's docs and have not run them live.
- Sign in with your claude.ai account. The docs say dictation is not available with an API key or a third party cloud provider, and it does not work in cloud sessions or over SSH.
- In a local session, run
/voice. Claude Code checks your microphone, and on macOS your terminal may ask for permission the first time. - Try hold mode, the default. Hold Space, wait for the footer to change from keep holding to listening, speak, then release. The text waits until you press Enter.
- To avoid holding a key, run
/voice tap. With the prompt empty, tap Space to start, speak, and tap again. Three words or more are sent right away. A shorter transcript stays in the box. - If you dictate in a language other than English, set it in
/config. Dictation uses the same language setting as Claude's replies and falls back to English when that setting is empty. - If Space gets in your way, run
/keybindingsand bind the dictation action to a modifier such as meta and k, which starts recording at once.
# We have not run this on every platform.
# Type these in a local Claude Code session.
/voice
/voice tap
/voice hold
/voice off
/config
# ~/.claude/settings.json, as the docs show it.
{
"voice": {
"enabled": true,
"mode": "hold"
}
}
# autoSubmit, shown separately as in the docs.
{
"voice": {
"autoSubmit": true
}
}
# ~/.claude/keybindings.json
{
"bindings": [
{
"context": "Chat",
"bindings": {
"meta+k": "voice:pushToTalk"
}
}
]
}
Gotchas
- Changed your mind? Press Esc or Ctrl+C. Claude Code discards the transcript and restores the prompt to what it held before you started recording. That press does not interrupt Claude or clear the prompt.
- Holding Space does nothing. Hold detection needs key repeat events. If only one or two spaces appear, switch to
/voice tap. - Vim users, watch Space. In vim mode outside INSERT, Space is a command, so it will not start dictation there. A modifier binding fixes that.
- Tap mode stops on its own. A tap recording ends after 15 seconds of silence or two minutes in total.
If you already use vim mode in the prompt, see our earlier Corner on Vim mode and matching brackets.
Sources:
Recommended AI prompt
Copy this paragraph into ChatGPT, Claude, Gemini, Grok, or whatever AI you use.
I want to dictate prompts in Claude Code. Using only Anthropic's docs on voice dictation and keyboard shortcuts, help me choose hold or tap mode, decide whether to send automatically, and pick a dictation key that will not clash with Space. Ask which OS and terminal I use, whether I sign in with a claude.ai account, whether I work over SSH, and which language I speak, then give a short setup checklist.