How to Use Voice Dictation in Claude Code

· HyperVoice Team

The short answer: Claude Code has dictation built in. Type /voice, then hold Space while you talk and let go when you’re done. Your words appear in the prompt and you press Enter to send. It needs a Claude.ai sign-in and an internet connection, and it only works inside Claude Code. If you sign in with an API key, work over SSH, or want the same voice typing in every other app too, a dictation hotkey like HyperVoice does the job instead.

Option 1: Claude Code’s built-in /voice

Anthropic added voice dictation to the Claude Code CLI, and it’s good. To use it:

  1. Run /voice. Claude Code checks your microphone and replies Voice mode enabled (hold). Hold space to record.
  2. Hold Space and speak. After a brief warm-up the footer shows listening… and your words appear in the prompt as you talk.
  3. Let go of Space. The text is finalised at your cursor. Read it, then press Enter.

A few things that make it pleasant for coding, all from Anthropic’s documentation:

What it needs (and where it stops)

This is where people get stuck, so it’s worth knowing before you rely on it:

If none of that bothers you, /voice is the simplest option and you don’t need anything else.

Option 2: A dictation hotkey (HyperVoice)

HyperVoice is a dictation hotkey for Windows: press it in any app, talk, press it again, and the text lands where your cursor is. Claude Code is one of those apps.

  1. Install it from the Microsoft Store. It’s signed by Microsoft, so there’s no install warning, and setup ends with a test dictation.
  2. Click into Claude Code’s prompt, in Windows Terminal, VS Code’s terminal, or wherever you run it.
  3. Press Ctrl+Shift+Space and explain the task the way you would to a colleague: what to change, what to leave alone, why.
  4. Press Ctrl+Shift+Space again. The prompt is pasted in. Read it, then press Enter.

What’s different from /voice:

It’s free at 500 words a day with a free account, no card.

Let it press Enter: “send it”

HyperVoice can submit the prompt for you, like /voice tap mode. Turn it on in Settings → Dictation → Voice commands, then end a dictation with the words “send it”. Only the very end of a dictation counts, so saying “send it” in the middle of a sentence doesn’t submit anything.

How to talk to Claude Code

Whichever tool you use, voice changes what you put in the prompt more than how fast it arrives. Typed prompts come out short because typing a paragraph is effort. Spoken ones come out complete:

There’s more on voice in editors and coding agents in Voice Typing in VS Code, Cursor, and Claude Code, and on dictating at the prompt in general in How to Voice Type in Windows Terminal.

Which one to use

If you’re signed in to Claude Code with a Claude.ai account, work locally and only want to talk to Claude, start with /voice: it’s built in and doesn’t touch your Claude usage. If you use an API key or Bedrock, work over SSH, would rather your audio stayed on your PC, or want one hotkey for Claude Code and everything else you write, HyperVoice is built for that. Try it free from the Microsoft Store.

Frequently asked questions

Does Claude Code have voice input?

Yes. Run /voice in the Claude Code CLI to turn on voice dictation, then hold Space while you speak. Your words appear in the prompt as you talk, and you press Enter to send. The Claude Code VS Code extension supports it too.

Why does Claude Code say 'Unknown command: /voice'?

/voice is only available while you're signed in with a Claude.ai account. If Claude Code is using an Anthropic API key, Amazon Bedrock, Google Cloud or Microsoft Foundry, the command doesn't exist. Run /login to sign in with a Claude.ai account, or use a system-wide dictation app, which works whatever Claude Code is signed in with.

Does Claude Code voice dictation work offline?

No. Anthropic's documentation says it streams your recorded audio to Anthropic's servers for transcription and that audio is not processed locally. A dictation app that runs speech recognition on your PC, such as HyperVoice, works without sending your audio anywhere.

Can I use Claude Code voice over SSH or in WSL?

Claude Code's /voice needs a local microphone, so it doesn't work in SSH sessions or cloud sessions. In WSL it needs WSLg. A dictation hotkey that runs on Windows doesn't have that limit: it transcribes on your PC and pastes the text into whatever the terminal is running, including an SSH session or a WSL shell.

Does voice dictation use up my Claude usage?

No. According to Anthropic, transcription in Claude Code doesn't consume Claude messages or tokens and doesn't count toward the limits shown in /usage.

How do I send a voice prompt without pressing Enter?

In Claude Code, switch to tap mode with /voice tap: tap Space to start, speak, and tap again to send (prompts of three words or more are sent automatically). In HyperVoice, turn on the 'send it' voice command and end your dictation with the words 'send it'.

Related posts

← Back to all posts