Here's how to talk to Claude Code in VS Code: sign in with a Claude.ai account, focus the Claude panel and press Cmd+D on Mac (Ctrl+D on Windows/Linux), or click the microphone button. Speak, then press again to stop. Your words become the prompt. Dictation needs a local microphone and doesn't work in VS Code Remote.
How to talk to Claude Code in VS Code with dictation?
- Sign in to the Claude Code extension with a Claude.ai account. An API key won't enable dictation.
- Click in the Claude panel to focus it.
- Press
Cmd+Don Mac orCtrl+Don Windows/Linux, or click the microphone button in the Claude panel. - Speak your prompt.
- Press the same shortcut or click the microphone button again to stop.
The shortcut only works while Claude is focused. Its command, claude-vscode.toggleDictation, isn't in the Command Palette. You can change the shortcut in Keyboard Shortcuts.
Transcription doesn't consume Claude messages or tokens. Audio streams to Anthropic's servers for transcription.
With the panel visible, recording stops after 60 seconds without recognized words, or after 10 minutes total. If you hide the panel, recording stops after 15 seconds without words, or 2 minutes after you hid it.
Why doesn't voice work in the VS Code extension?
Check how you're signed in and where the extension is running:
| Problem | What to do |
|---|---|
| Signed in with an API key, Bedrock, Google Cloud's Agent Platform or Microsoft Foundry | Sign in with a Claude.ai account. Dictation requires one. |
| Using VS Code Remote: SSH, Dev Containers or Codespaces | Use a local session for dictation. The extension runs on the remote host, while the microphone is on your machine. |
| Using WSL | WSL needs WSLg for voice input. |
| Behind a TLS-inspecting proxy | With extension 2.1.307 or later, set NODE_EXTRA_CA_CERTS in the env block of ~/.claude/settings.json. A claudeCode.environmentVariables value doesn't apply to dictation. |
If you're running Claude in a terminal and see an error message, see Claude Code voice mode.
How do I change the dictation language?
Set Claude Code's language in ~/.claude/settings.json to a language name or BCP 47 code. For Japanese, add "language": "japanese" inside the existing settings object, keeping your other settings.
In the VS Code extension, an empty language setting uses VS Code's accessibility.voice.speechLanguage, then English. Claude Code supports twenty dictation languages. The language setting also sets the language of Claude's replies.
Can I use /voice in VS Code's terminal?
Yes. Install the standalone CLI, then run claude in VS Code's integrated terminal. That session uses the CLI's /voice command: turn it on and hold Space to talk, or use /voice tap for tap mode. See Claude Code voice mode for the CLI steps.
VS Code also has its own dictation. Choose "Voice: Start Dictation in Terminal" from the Command Palette. For editor dictation, press Cmd+Alt+V on Mac or Ctrl+Alt+V on Windows/Linux. Built-in dictation runs locally and works offline after a one-time model download. On an Intel Mac or another unsupported platform, the VS Code Speech extension provides dictation.
On a Mac, you can also put the cursor in the prompt box and press the Microphone key, or choose Edit › Start Dictation. Apple's Dictation processes supported languages on the Mac when you have Apple silicon.
Can Claude Code read its replies aloud in VS Code?
For ways to hear replies, see Claude Code text to speech. The Readwalk steps below explain how to continue your conversation aloud in Apple's Terminal app.
Microsoft documents VS Code Speech's spoken responses for VS Code's chat, including GitHub Copilot Chat. It doesn't say this works with the Claude panel.
How can I continue the conversation with Readwalk for Mac?
Readwalk for Mac is free and needs macOS 15 or later on Apple silicon. It reads Claude's messages in each session's own voice, skipping tool calls and tool output. Then it chimes, listens for your spoken answer and sends it back as the next instruction.
Readwalk is built around sessions in Apple's Terminal app. Switching sessions and typing into idle sessions use Terminal. For hands-free back-and-forth, continue your conversation there:
- Open Apple's Terminal and run
claude --resume. The extension and CLI share history, so this lists your extension conversations. - Choose the conversation you want to continue in Terminal.
- In Readwalk's menu, choose Claude Sessions › Connect to Claude Code….
- In Readwalk's Claude Sessions menu, switch on the session you want to hear.
Readwalk uses Apple's on-device speech recognition for your answer. The guide to talk to Claude Code by voice explains the conversation controls.
How do I get a sound when Claude finishes in VS Code?
Put a Stop hook that runs afplay on Mac in ~/.claude/settings.json. The extension and CLI share that file, and Claude Code fires the same hook events in IDE extensions as in the terminal. Stop runs when Claude finishes responding; it doesn't run when you interrupt.
For the hook JSON, see Claude Code notification sound when done.
A Notification hook can alert you when Claude is waiting. Its permission_prompt matcher fires about six seconds after a permission request. Its idle_prompt matcher fires about 60 seconds after Claude finishes if you haven't typed. Use Stop for a sound as soon as the reply ends.
In Claude Code v2.1.269 or later, the extension's Hooks panel shows the hooks loaded in the session. You can add, edit or remove hooks there.
Frequently asked questions
Does Claude Code have voice mode in VS Code?
Yes. Sign in with a Claude.ai account, focus the Claude panel and press Cmd+D on Mac or Ctrl+D on Windows/Linux. You can also click the microphone button to dictate.
What is the shortcut for Claude Code dictation in VS Code?
Cmd+D on Mac, or Ctrl+D on Windows and Linux, with the Claude panel focused. The dictation command isn't in the Command Palette.
Why doesn't Claude Code voice work in VS Code Remote or Codespaces?
The extension runs on the remote host, while the microphone is on your machine. Anthropic's voice dictation requirements rule out VS Code Remote sessions, including Codespaces.
Can I get a notification sound from Claude Code in VS Code?
Yes. Use a Stop or Notification hook in ~/.claude/settings.json, which the extension shares with the CLI. Stop fires when Claude finishes responding.
Does Claude Code use tokens for speech to text in VS Code?
No. Transcription doesn't consume Claude messages or tokens.