Skip to content

Blog

Voice coding on Mac: Cursor, VS Code and the terminal

Updated

You can code by voice on a Mac in any editor: a dictation app pastes your words into Cursor, VS Code, a JetBrains IDE or the terminal, wherever your cursor is. Cursor and VS Code also have voice input of their own, and Claude Code has /voice. Whichever you use, two things decide whether it works well: code words need a custom vocabulary, and you press Return yourself.

This post covers the editors and the terminal. For Claude Code and Codex in detail, including how to let the agent ask you questions by voice, see voice input for Claude Code and Codex.

For prose rather than code, see dictation for writers.

Which voice input works where

Each option below was checked in the vendor’s own docs or changelog on 13 November 2026.

OptionWhere it worksWhere your speech becomes text
A Mac dictation app (Typd, others)Any app you can paste into: every editor, the terminal, chat boxesDepends on the app. Typd: on your Mac
Apple Dictation“anywhere you can type it”On your Mac or on Apple’s servers: Keyboard settings show which
Cursor’s voice inputCursor’s agent chat, in the IDE and the Agents WindowNot stated in Cursor’s docs
VS Code dictationVS Code’s chat, editor and terminalOn your Mac (Apple Silicon). The transcript goes to a Copilot model for clean-up unless you turn that off
Claude Code /voiceClaude Code, in the terminal and the VS Code extensionAnthropic’s servers
ChatGPT desktop app (Codex)The Codex composer in the desktop appNot stated on the voice page

Only a dictation app works the same way in every tool. Each built-in option belongs to one tool.

Typd is free for dictation, with no limits. See the download page.

Cursor: built-in voice or a dictation app

Cursor’s 2.0 changelog introduced Voice Mode: “Dictate prompts to Agent using built-in speech-to-text conversion.” You can also set “custom submit keywords” that start the agent when you say them. Version 3.1 added voice input to the Agents Window. You hold a key and speak, and Cursor “records your full voice clip and transcribes it with batch STT”, with buttons to cancel or confirm.

Cursor’s docs on prompting agents now cover voice input. You click the microphone in the chat input, or press Cmd Shift Space in the IDE. In the Agents Window, you hold Ctrl M while you talk. The docs say to “review the transcription before sending”. They don’t say where the audio is transcribed or which languages it supports. Cursor’s voice chat, where the agent talks back, is a separate feature.

A dictation app is the other way in. It does not depend on Cursor’s settings or version:

  1. Click in Cursor’s agent input, or in the editor.
  2. Start your dictation app and say the prompt.
  3. Read the text, fix anything, and send it yourself.

With a dictation app, the same vocabulary and the same habits work in Cursor, your terminal and your browser.

VS Code: dictation that runs on your Mac

VS Code now has dictation built in. Its voice docs say: “On desktop, dictation uses an on-device speech recognition model by default.” The first time you dictate, VS Code downloads the model. “After the download completes, speech recognition works locally and offline.”

You can dictate in three places:

  • Chat. Dictation puts the text in the chat input and does not send it. The voice docs list the shortcut.
  • Editor. Run Voice: Start Dictation in Editor from the Command Palette.
  • Terminal. Run Voice: Start Dictation in Terminal, then Voice: Stop Dictation in Terminal to insert the text.

Things to know before you rely on it:

  • The transcript is cleaned up by a Copilot model. The dictation.experimental.llmCleanup setting is on by default. It sends the transcript text, not the audio, to a Copilot language model. Turn the setting off if you want the transcript to stay on your Mac too.
  • Intel Macs don’t get built-in dictation. They need the VS Code Speech extension, which also processes audio locally and supports 26 languages.
  • Remote workspaces work, because “speech recognition runs on the local VS Code client”.
  • Language. The agents.voice.language setting gives a language hint. auto uses your system language.
  • Voice Mode is separate. It is experimental, and the hosted version needs an eligible individual GitHub Copilot plan.

JetBrains IDEs: use a dictation app

JetBrains AI Assistant’s help pages (version 2026.3) don’t mention voice input. To speak to IntelliJ IDEA, PyCharm, WebStorm or another JetBrains IDE, use Apple Dictation or a dictation app. Both put text into the editor and the AI chat, as in any other app.

AI Assistant can also start MCP servers, which you need for the agent questions further down.

The terminal: Return stays yours

Apple Dictation works in Terminal, and so does any dictation app that pastes. What makes the terminal different is that pressing Return runs something. So keep the rule simple: dictation types, you press Return.

Typd pastes the text at the prompt and stops there. It never presses Return, so a misheard word can’t run as a command. After it pastes, your clipboard goes back to what it held before. Claude Code’s own /voice does the same in its default hold mode, unless you set "autoSubmit": true. In tap mode, though, it sends transcripts of three words or more by itself.

Habits that work in a terminal:

  • Speak the prompt, type the syntax. Say what you want the agent to do and why. Type the flag, the path or the exact command.
  • Name things, don’t spell them. “The settings view” works better than spelling out a file name. The agent can find the file.
  • Dictating over SSH works. A dictation app pastes into the terminal window on your Mac, and the terminal sends the text on to the remote machine. The speech stays on your Mac.
  • Silence ends Apple Dictation. Apple’s page says it stops by itself after 30 seconds without speech. If you pause to think, start it again.
  • Voice Control replaces Dictation. Apple’s page says that when Voice Control is on, “standard macOS Dictation isn’t available”. You dictate with Voice Control instead.

If Dictation does nothing at all, our Mac dictation not working post has the fixes.

“Voice mode is not available” in Claude Code

Claude Code’s /voice streams your audio to Anthropic’s servers for transcription, and it works only in certain setups. Its docs list these causes when voice won’t start:

MessageWhat it means
Unknown command: /voice or Voice mode requires a Claude.ai account/voice works only when a claude.ai account is your active sign-in. It isn’t available with an Anthropic API key, Amazon Bedrock, Google Cloud’s Agent Platform or Microsoft Foundry. An API key in your setup takes precedence over a claude.ai sign-in: remove it and restart Claude Code.
Voice mode is disabled by your organization's policyYour admin turned it off.
Microphone access is deniedAllow the microphone for your terminal app in System Settings › Privacy & Security › Microphone.

Voice dictation also “does not work in cloud sessions or SSH sessions”, and in the VS Code extension, not in remote sessions (SSH, Dev Containers or Codespaces). Recording stops by itself after 15 seconds of silence or two minutes in total.

With the wrong sign-in, over SSH or in a remote session, a dictation app on your Mac still works, because to Claude Code the text looks typed. The same goes for the Codex CLI. Its docs don’t mention voice, and on the GitHub issue that asked for dictation in the CLI, closed as not planned, a September 2026 comment says: “We don’t have plans to bring dictation to the CLI.” OpenAI’s voice features for Codex are in the ChatGPT desktop app. Setup for both agents is in our Claude Code and Codex post.

Code words: teach the model your names

Speech models know English. They don’t know your project’s names. A custom vocabulary fixes most of that, and in Typd it is free. It applies everywhere you dictate, in every editor. Open the menu bar icon › Settings… › Vocabulary & Text.

Words are for names spelled one way: libraries, services, colleagues, your product. Add them exactly as you write them, such as “Pydantic”, “Tailwind” or “Supabase”. With the default model, Cohere Transcribe, Typd listens for your terms. When the model is unsure about a stretch that sounds like one of them, it reads that part again with your terms as context. After that, every model fixes spacing and capitals for near misses (“supabase” → “Supabase”). It never changes common words or words under 4 letters. So a name that is also an ordinary word needs a replacement.

Replacements are for identifiers you say as ordinary words. A replacement swaps whole words after transcription, in any capitalization:

FindReplace with
use effectuseEffect
pie testpytest
next jsNext.js

A replacement applies everywhere, so “use effect” becomes useEffect in an email too. Add rules for the names you use often, not for every word you might say.

To set up a whole project at once, import a CSV file with a term column for words, or from,to columns for replacements. You can also import your list from superwhisper. The details are in Vocabulary, and how to use dictation on Mac covers Apple’s own options.

Test a vocabulary on your own code words

To see what a vocabulary does for your project, dictate the same coding prompts twice into Typd. The first time, leave the vocabulary empty. The second time, add your terms. Count a term as right only if it is spelled and capitalized exactly as you write it. Every dictation is in Typd’s history, so you can count the terms afterwards.

Prompts you can use, with the code terms in bold:

  1. Move the fetch into a useEffect and clean it up on unmount.
  2. Run pytest on the tests folder and show me the failures.
  3. Upgrade Next.js to the latest version and fix the build.
  4. Validate the request body with Pydantic before saving it.
  5. Replace the custom CSS with Tailwind classes.
  6. Store the session in Supabase instead of Redis.
  7. Use kubectl to check why the pod keeps restarting.
  8. Add a GitHub Actions job that runs npm test on every push.
  9. Write a PostgreSQL migration that adds an index on email.
  10. Convert this file to TypeScript and make the handler async.
  11. Parse the JSON with Zod and return a clear error.
  12. Add an OAuth callback route and log the webhook payload.
  13. Move the dev server to Vite.
  14. Generate the Prisma client and put nginx in front of the app.

A vocabulary for the second run:

  • Words: Pydantic, Tailwind, Supabase, Redis, PostgreSQL, TypeScript, GitHub Actions, OAuth, webhook, Vite, Prisma, JSON, async, npm.
  • Replacements: “use effect” → useEffect, “pie test” → pytest, “next js” → Next.js, “cube control” → kubectl, “zod” → Zod, “engine x” → nginx. Change the spoken side to the way you say each name.

Let the agent ask you by voice (Pro)

Dictation goes from you to the editor. Typd’s MCP server works the other way: the agent asks a question, Typd shows it on screen and records your spoken answer, and the agent gets the text. The tool is ask_user. It is part of Typd Pro, and it is useful when a long task needs a decision while you are away from the keyboard.

Typd’s docs cover Claude Code and Codex, and our Claude Code post walks through both. Any client that can start a local (stdio) MCP server can use it. The server is typd mcp, and with Typd in /Applications, the command is /Applications/Typd.app/Contents/Helpers/typd. For two more clients, these steps follow each vendor’s MCP docs:

  • VS Code. Add the server to your user profile from Terminal:

    code --add-mcp '{"name":"typd","type":"stdio","command":"/Applications/Typd.app/Contents/Helpers/typd","args":["mcp"]}'
  • JetBrains AI Assistant. Open Settings › Tools › AI Assistant › Model Context Protocol (MCP), click Add, and paste:

    { "mcpServers": { "typd": { "command": "/Applications/Typd.app/Contents/Helpers/typd", "args": ["mcp"] } } }

In Typd, Settings › Automation › Other apps can control Typd must not be Off. Its default is Ask before recording. The tools, timeouts and security model are in MCP & agents.

What Typd does not do

Typd writes down what you said. It has no AI rewriting and no cloud models, and it doesn’t control your editor by voice: no “go to line 40”, no “select the next word”. For that, Apple’s Voice Control is the built-in option. If typing hurts, our guide to dictation for RSI sets up Typd and Voice Control together. Typd runs on Macs with Apple Silicon and macOS 26 or later. Its features page lists the rest.

Questions

Does Cursor have voice input?

Yes. You click the microphone in the agent's chat input, or press Cmd Shift Space in the IDE. In the Agents Window, you hold Ctrl M and speak. Cursor's docs don't say where the audio is transcribed. A Mac dictation app also works in Cursor, because it pastes into any text field.

Can I use Mac dictation in Terminal?

Yes. Apple Dictation works anywhere you can type, including Terminal, and a dictation app such as Typd pastes into the terminal too. Neither presses Return, so you read the text before it runs.

Why does Claude Code say voice mode is not available?

Claude Code's /voice works only when a claude.ai account is your active sign-in. It doesn't work with an API key, Amazon Bedrock, Google Cloud or Microsoft Foundry, in SSH or cloud sessions, or when your organization turns it off. A dictation app on your Mac works in all of those cases.

Does VS Code dictation work offline?

Yes, on Apple Silicon Macs. VS Code downloads an on-device speech model the first time you dictate, and after that, recognition works offline. By default, it sends the transcript text, not the audio, to a Copilot model for clean-up. The dictation.experimental.llmCleanup setting turns that off.

How do I get code words right when I dictate?

Add your project's names to a custom vocabulary, spelled the way you write them, and add replacements for identifiers you say as separate words. Type exact flags and paths: that is still faster than speaking them.

Sources