Claude Code /voice not working? Every error and the fix

Claude Code wordmark in orange pixel letters on a dark background

Claude Code has a native voice command. Run /voice, hold space, speak, and your words stream into the prompt.

When it does not work, the error message tells you what went wrong but not always what to do next. Below is every /voice error in Anthropic's docs with its fix, then the setups where /voice cannot run at all, like API keys, Bedrock, SSH and containers, and how to dictate there.

If it's the microphone in the Claude app or on claude.ai that won't work, Claude dictation not working? has the fixes for every device.

/voice not working? Every error and the fix

Checked against the Claude Code voice dictation docs on 23 October 2026. Find your message in the first column.

Error What it means Fix
Unknown command: /voice /voice only exists while a Claude.ai account is your active sign-in. An ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN, apiKeyHelper setting or third-party provider takes precedence Run /login with a Claude.ai account. If one of those is set, remove it and restart Claude Code. If your setup needs it, see what to use instead
Voice mode requires a Claude.ai account Claude Code found no usable Claude.ai sign-in Run /login again
Voice mode is disabled by your organization's policy An administrator policy turns voice dictation off Ask your administrator whether voice is available for your organisation
Microphone access is denied Your terminal has no microphone permission macOS: System Settings, Privacy & Security, Microphone, enable your terminal. Windows: Settings, Privacy & security, Microphone, allow desktop apps. Then run /voice again
Your terminal is missing from the macOS Microphone list macOS never asked this terminal for access Run tccutil reset Microphone com.apple.Terminal (iTerm2: com.googlecode.iterm2), quit the terminal with Cmd+Q, reopen it and run /voice
Voice mode requires SoX for audio recording on Linux, or Voice mode could not find a working audio recorder in WSL No recorder Claude Code can use: SoX is missing, or in WSL its PulseAudio backend is A package install: SoX, plus its PulseAudio backend in WSL
Voice mode requires a microphone, but SoX could not open an audio capture device The machine has no capture device: a headless server, a container, a VM Run Claude Code where your microphone is, or dictate from your own machine (see SSH and containers)
Voice input is failing repeatedly and has been paused Three failures within 10 seconds, usually no working input device Fix the device or permission problem above, wait 10 seconds, try again
Holding Space only types spaces Voice is off, or your terminal does not send key-repeat Run /voice hold. If one or two spaces appear and then stop, switch to /voice tap
Tapping Space types a space instead of recording (tap mode) The first tap only starts recording when the prompt is empty Clear the prompt first. If it still types, run /voice tap to switch tap mode on
No audio detected from microphone Recording ran but captured silence Set the right microphone as the system default input and check its level
Voice connection failed The recording never reached the transcription service Check your network and try again
Dictation error: WebSocket error: then a certificate error such as unable to get local issuer certificate (VS Code) A company proxy that inspects encrypted traffic is in the way Update the extension to 2.1.307 or later. Then ask IT for the proxy's root certificate as a PEM file and set NODE_EXTRA_CA_CERTS to its full path, not starting with ~, in the env block of ~/.claude/settings.json
Voice stream error: WebSocket upgrade rejected with HTTP <status> A server refused the connection. A 4xx status usually means a stale sign-in or a proxy in the way Run /login, then check for a VPN or proxy
No speech detected Audio arrived but no words were recognised Move closer to the microphone or use a headset or USB microphone, cut background noise, check the dictation language in /config
Dictation stopped: no speech recognized for 15 seconds or Dictation stopped at its 2-minute limit (VS Code) The extension's silence and length limits Click the microphone again to carry on. Vibe Typer records up to five minutes per take
Garbled text, or the wrong language Dictation defaults to English and supports 20 languages Set your language in /config. For a language outside the 20, Vibe Typer covers 99 languages

If the fix in your row is "sign in with a Claude.ai account" and your company runs Claude Code through an API key, Bedrock, Google Cloud or Foundry, or the error is about a missing microphone on a remote host, nothing in Claude Code will turn /voice on. Those are the cases the rest of this page is about.

What /voice actually does

Straight from the Claude Code voice dictation docs, so you can check every line of this:

  • Enable with /voice. Hold mode is push-to-talk on Space; /voice tap toggles recording with a single press and submits when you tap again.
  • The transcript appears in the prompt as you speak and is inserted at the cursor, so you can mix typing and dictation in one message.
  • Transcription is tuned for coding vocabulary. Your project name and current git branch are added as recognition hints automatically.
  • It does not consume tokens and does not count toward the limits in /usage.
  • Audio recording uses a native module on macOS, Linux and Windows, falling back to arecord or SoX on Linux.
  • The push-to-talk key is rebindable in ~/.claude/keybindings.json.

That is a well-built feature. Two limits are worth knowing even when it works: recording stops after 15 seconds of silence or two minutes total, and dictation supports 20 languages. If you think out loud in long pauses, or you work in a language outside that list, you will feel both.

The six places /voice is not available

The docs list each of these as a requirement.

Situation What happens
Authenticated with an API key, Amazon Bedrock, Google Cloud's Agent Platform, or Microsoft Foundry Not available. /voice requires a Claude.ai account, because that is what the speech-to-text service is attached to
An administrator policy turns voice off Voice mode is disabled by your organization's policy
SSH sessions, or Claude Code on the web Not available. It needs a local microphone
VS Code Remote: SSH, Dev Containers, Codespaces Not available in the VS Code extension, "because the microphone is on your local machine and the extension runs on the remote host"
WSL1, or WSL2 without WSLg Not available. Anthropic's guidance is to run Claude Code in native Windows instead
Headless hosts and containers Voice mode requires a microphone, but SoX could not open an audio capture device

The first row is the quiet one. A large share of professional Claude Code use runs through Bedrock or a direct API key, because that is how the company's billing and data agreements are set up. Those developers cannot turn /voice on at all, and no amount of configuration changes it.

The middle rows are the structural ones, and they are the reason this page exists. Voice built into an agent can only hear you if the agent is running where your microphone is. The moment the process moves to a server, a container, or a remote workspace, a built-in voice mode has nothing to listen to. That's geometry, and it applies equally to every agent that adds voice.

Where your audio goes

From the docs: "Voice dictation streams your recorded audio to Anthropic's servers for transcription. Audio is not processed locally."

Vibe Typer is cloud too: audio is processed in memory, with no recordings or transcripts on our servers. The details are in local history and privacy and the privacy policy.

And it only works inside Claude Code

The other half of the gap has nothing to do with microphones.

/voice fills the Claude Code prompt. Your day is not only the Claude Code prompt. In a normal hour you also write a commit message, a pull request description, a reply on a review thread, a Linear ticket, a Slack answer, a note in your editor, and a search in your browser. Every one of those is typed.

A dictation layer at the operating system does not care which application is focused. Same key, same behaviour, in Claude Code and in the seven other places.

Where Vibe Typer fits

Vibe Typer is a desktop app on the computer in front of you, and it types into whatever has focus. It ships as a single portable AppImage for Ubuntu, Fedora, Debian, Arch and Linux Mint, plus Windows and macOS builds, and it runs on both Wayland and X11. It's free to start, no card. Pro is $10/month, or $8/month billed annually.

/voice needs a Claude.ai sign-in and a microphone on the machine Claude Code runs on, and it fills the Claude Code prompt and nothing else. Vibe Typer is the pick when any of these is true:

  • Claude Code runs on a remote host, in a dev container, in Codespaces, or over SSH.
  • You authenticate through Bedrock, Google Cloud's Agent Platform, Foundry, or a raw API key.
  • You dictate in a language outside the 20 that /voice supports. Vibe Typer covers 99 languages with automatic detection.
  • You want the same key to work outside Claude Code.
  • Your prompts run past two minutes of speech. Vibe Typer records up to five minutes per take.

They also coexist. Nothing stops you leaving /voice enabled for quick prompts and using a global hotkey everywhere else.

Setting it up for terminal work

  1. Download from the downloads page. On Linux, make the AppImage executable and launch it.
  2. On a Wayland session, sign in, then run the one-time Wayland setup if Vibe Typer offers it. It sets the device permissions the global hotkey needs, and the hotkey works straight away.
  3. Choose a hotkey your terminal does not already claim.
  4. Focus the Claude Code prompt, press the key, speak, press it again, read what landed, then press enter.

Terminals are the fussy part, and Vibe Typer's Automatic insertion mode handles the known cases: Ctrl + Shift + V in Linux terminals rather than Ctrl + V, and Shift + Insert for Konsole, Yakuake, and the integrated terminals in VS Code and Cursor, where coding agents often read Ctrl + V as an image paste. If a specific terminal misbehaves, set a per-app override in text insertion and paste preferences; Type simulates keystrokes instead of pasting and leaves your clipboard as it was.

Dictating prompts worth sending

The gain from voice is sending the prompt you'd never have typed at all.

Compare:

  • Typed: "Create auth system with OAuth"
  • Spoken: "I need user authentication for this app. Support Google and GitHub OAuth plus email and password as a fallback. Add password reset and session management that survives a browser restart. Do not change the existing user table schema."

The second is thirty seconds of talking and it removes three rounds of clarification. That is the whole argument.

Four habits make it reliable:

Teach it your nouns. Repository names, internal services, CLI flags and library names are exactly the words a general speech model mangles and exactly the words the agent needs correct. Add them once in the custom dictionary.

Say the constraints. What must not change is as useful to an agent as what must. Speaking makes it cheap to include.

Let the formatter absorb the mess. Magic Formatter strips false starts and mid-sentence corrections so the prompt reads as what you meant.

Always read before you send. A misheard file path in a Slack message is a typo. A misheard file path in an agent prompt is a diff.

Where voice earns its keep

Bug reports. Describe the failure while you are still looking at it: what you clicked, what you expected, what the log said, what you already ruled out. Speaking through a bug also tends to solve a fair number of them.

Multi-file refactors. "Move all authentication logic into a dedicated auth service, update the imports, keep the user model to data and user-management logic only, and keep the public API identical so nothing downstream breaks." Nobody types that. Everybody can say it.

Review replies. Detailed, generous review comments are mostly a typing-cost problem. Remove the cost and the comments get better.

After the code lands. Commit messages, pull request bodies, changelog entries and the Linear ticket you are meant to close. None of these are Claude Code surfaces, and all of them are dictation surfaces.

Related reading

Getting started

If you're on Bedrock, on a remote host, in a container, dictating in Arabic, or you'd like the same key to work in the other ten apps you typed into today, Vibe Typer is the pick: it sits below the agent, so it types wherever your cursor is.

Download Vibe Typer and start on the free plan.

Frequently asked questions

Why is /voice an unknown command in Claude Code?

Because no Claude.ai account is your active sign-in. Run /login. If ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN, an apiKeyHelper setting or a third-party provider is set, it takes precedence over the sign-in: remove it and restart Claude Code. If your setup has to use one of those, /voice stays off, and Vibe Typer still lets you speak your prompts.

Why does Claude Code say no audio detected from microphone?

Recording started but captured silence. Make your microphone the system default input, check its level is not muted or near zero, then try again.

Does Claude Code have built-in voice input?

Yes. Run /voice to enable hold-to-record dictation in the CLI, or /voice tap for tap-to-record. It works on macOS, Linux and Windows, and it does not consume tokens or count toward your usage limits.

Why does /voice say voice mode requires a Claude.ai account?

Because it does. Claude Code's speech-to-text is unavailable when you authenticate with an Anthropic API key directly, or through Amazon Bedrock, Google Cloud's Agent Platform, or Microsoft Foundry. Run /login with a Claude.ai account. If you can't, use Vibe Typer: it doesn't care how Claude Code authenticates.

Can I use Claude Code voice dictation over SSH?

No. The docs list a local microphone as a requirement and state that dictation does not work in remote environments such as SSH sessions or Claude Code on the web. System-wide dictation on your laptop still works, because your terminal emulator is a local application. See voice dictation over SSH.

Does voice dictation work in Dev Containers or Codespaces?

In the Claude Code VS Code extension, no: its dictation is unavailable in VS Code Remote sessions, SSH, Dev Containers and Codespaces included, because the microphone is on your local machine while the extension runs on the remote host. Vibe Typer types into the VS Code window on the computer in front of you, so it works there normally.

Is Claude Code voice dictation processed on my machine?

No. The docs are explicit: recorded audio is streamed to Anthropic's servers for transcription and is not processed locally.

How many languages does /voice support?

Twenty, and it falls back to English if your language setting is not one of them. Vibe Typer supports 99 languages plus automatic detection.

Does Claude Code voice work on Linux?

Yes, on a machine with a real audio capture device. It uses a native module, falling back to arecord from ALSA utils or rec from SoX. On a headless server or inside a container with no capture device it reports that it cannot open one.

Can I use both /voice and a system-wide tool?

Yes, and most people should. Keep /voice for quick prompts where it works, and let Vibe Typer handle everything else on one global hotkey.

Try Vibe Typer free

Voice typing that works in every app on Linux, Windows, Mac, iPhone and Android. Free to start, no card needed.

Download free