Developer workflow · 6 min

Voice to text for coding: talk through intent, keep your hands on the hard parts.

Dictation is strongest for prompts, plans, bug reports, comments and review notes, not for spelling out every brace. VoiceToText pastes your reviewed speech into whatever coding tool has the cursor.

  • Cursor & VS Code
  • Terminals & chat
  • Local transcription
  • Review before paste

Use voice for the semantic layer

Speak the outcome, constraints, evidence and acceptance criteria; type exact symbols and identifiers. That split avoids the most frustrating part of code dictation and makes long AI-agent prompts, pull-request notes and debugging narratives much quicker to capture. Dictate a long prompt in several passes with ⌘R, and if you want it restructured, the optional Improve prompt action does that on your own OpenAI key.

How dictation works in Cursor, VS Code and the terminal.

VoiceToText is a Mac app, not an editor extension, so there is nothing to install in Cursor or VS Code. It types by pasting: when you confirm the text, it puts it on the clipboard, sends ⌘V to the app you were in, and restores your previous clipboard about a quarter of a second later.

In Cursor

Click into the chat input, or the line in the editor where the text belongs. Press ⌥Space, speak the prompt, check it in the review panel, and press Return. The text lands in the field that had focus, and you send the prompt yourself.

In VS Code

The same steps work in the editor, a comment, a chat panel, the commit message box, or the integrated terminal: whatever has the caret receives the paste. Dictated code comments read best when you type the comment marker first and dictate the sentence after it.

In the terminal

The only key VoiceToText sends is ⌘V. It never presses Return, so a dictated command or agent prompt waits at the prompt until you read it and run it yourself.

The editor keeps focus while you review

The review panel floats over the editor without taking it out of the front, so the paste goes back where you started. If you switch apps before confirming, the text pastes into the one you are in now. If it can’t paste, for example because the app has quit, the text stays on your clipboard to paste by hand.

The editors’ own voice input

Both editors now have voice input of their own, aimed mostly at their AI chat. With AI features on, VS Code dictates into the editor with ⌥⌘V and into a chat prompt with ⌘I, on your device by default in the desktop app; on an Intel Mac it offers its Speech extension instead, which is documented for voice chat. Cursor dictates into its chat input with ⌘⇧Space and has a realtime voice chat with agents. VoiceToText is for one shortcut across every app, the terminal, browser and Slack included, with a review step and your choice of model.

The best coding dictation is usually prose that controls code.

A transcript does not have to be source code to move a software task forward. Modern coding work contains a large amount of natural-language context.

Agent and chat prompts

Describe the change, files in scope, constraints, edge cases, and how to verify it. A complete spoken brief is more useful than a terse one-line request.

Bug reproduction

Narrate what you did, what you expected, what actually happened, and the exact environment while the failure is still visible.

Comments and documentation

Explain why a decision exists, summarize a public API, or capture migration guidance, then edit the transcript for identifiers and precision.

Review and handoff notes

Dictate PR feedback, test findings, stand-up notes, and a session handoff without switching away from the diff, terminal, or issue form.

Speak prompts in five passes, then review once.

Begin with the goal: “Add keyboard navigation to the command menu.” Follow with the relevant context: framework, component, current behavior, and files you already inspected. Then name the constraints: preserve public APIs, avoid a new dependency, or keep the feature accessible without JavaScript.

Next, dictate edge cases and acceptance checks. Mention empty states, focus restoration, reduced motion, error handling, and the commands or tests that should pass. End by defining the output you want from the agent: an implementation, a diagnosis only, or a short plan before any edits.

You don’t have to say it in one breath. Stop after a pass, and in the review panel press ⌘R (Resume) to record the next pass. It is inserted at the caret, so you can also click into the middle of the draft and add a missed constraint there. If a resumed take fails, the earlier text comes back.

Before pasting, correct paths, function names, issue numbers and negations. Those few tokens often carry more technical meaning than the rest of the prompt, and a speech model can’t guess a project-specific spelling it has never seen.

Use the same shortcut in an editor, terminal, browser, or native app.

Place the cursor deliberately

Click the exact chat box, issue field, comment or document location that should receive the text. VoiceToText pastes into the field that has focus, in any app where ⌘V pastes text.

Speak naturally, without dictation commands

Press ⌥Space (the default), speak in full sentences, and let the model punctuate. VoiceToText has no voice commands: saying “comma” or “new line” types the word, unless you run the optional Clean transcript or Fix grammar action. Built-in cleanup also puts a space after dots, so package.json can come out as “package. Json”.

Review technical tokens

Check filenames, package names, flags, commands, URLs, versions, and words such as “not.” Edit them before they can steer an agent or a shell in the wrong direction.

Paste, then type the syntax

Press Return (or the dictation shortcut) to paste, and Shift+Return for a new line inside the panel. Add code fences, backticks, operators and exact snippets with the keyboard, or let the coding tool write the code from your prose.

Trigger it from your tools

VoiceToText answers a URL scheme: open -g voicetotext://toggle starts or stops dictation, and start, stop and cancel work the same way. Bind it to a Raycast script, a Shortcuts action or a Stream Deck key. The -g flag keeps your editor in front, so the text lands there.

Pick the model for the repo

For private code, stay on a local model: Parakeet or Whisper. Local Whisper covers 99 languages; Parakeet handles English and 24 other European languages. The Whisper vs. Parakeet comparison has the benchmark numbers.

Treat a transcript as draft input, especially near a shell.

Don’t paste a dictated shell command and run it straight away. A single missing “not,” changed path or invented flag can turn a harmless request into a destructive one. Keep review on, paste into an editor or prompt box first, and read the final command before it runs.

Voice is also a poor way to enter secrets. Never dictate API keys, passwords, recovery codes or private tokens. Use a password manager or another secure input that keeps the secret out of a transcript and out of History.

For private repositories, choose a local model so the recording is transcribed on the Mac; the offline guide lists the three settings to check. Remember that the destination can still be in the cloud: pasting a private prompt into a hosted AI tool sends the text under that tool’s terms, even if speech recognition itself was local.

Keep typing when token-level precision dominates.

Exact code

Dense syntax, indentation, escaping, generics, regular expressions and short identifiers are usually faster and safer to type.

Sensitive values

Credentials and private keys should never enter a dictation. The paste goes through the clipboard: VoiceToText saves your previous clipboard and restores it about a quarter of a second later. By default, History also keeps each dictation’s audio and transcript.

Noisy shared spaces

A keyboard keeps things private and accurate when colleagues are talking, or when saying project details aloud would disturb people.

Small edits

Renaming one symbol or flipping a boolean is not a speech task. Reach for voice when the thought is longer than the edit.

Compare the practical differences.

A practical division of labor for coding on a Mac. Swipe sideways to see every column.

A practical division of labor for coding on a Mac.
Decision pointDictateType
AI promptsGoals, context, constraints, examples, and acceptance criteria.Exact paths, commands, and code samples.
Source codeComments, docstrings, and high-level pseudocode.Syntax, identifiers, operators, and indentation.
DebuggingReproduction narrative and observations while the bug is visible.Logs, stack traces, hashes, and precise values.
Code reviewReasoning, risks, suggested behavior, and questions.Inline patches and token-level corrections.
TerminalExplain the task to an agent or draft a command for review.Inspect and run the final command yourself.

Common questions.

Can I use voice dictation in Cursor on Mac?

Yes. Install VoiceToText, click into Cursor's chat input or the editor, press ⌥Space, speak, review the text, and press Return. VoiceToText pastes it with ⌘V into the field that has focus; Cursor needs no extension or setting. It doesn't press Return in Cursor, so you send the prompt yourself. Cursor also has its own dictation for the chat input (⌘⇧Space) and a voice chat with agents; VoiceToText is the choice when you want the same shortcut in the editor, the terminal and every other app, with a review step.

How do I dictate in VS Code on Mac?

Put the caret where the text should go: the editor, a chat panel, the commit message box or the integrated terminal. Press ⌥Space, speak, check the text in the review panel, and press Return to paste it there. VoiceToText needs Accessibility permission to send the ⌘V, and nothing is installed in VS Code. VS Code also has built-in dictation when its AI features are on: ⌥⌘V in the editor and ⌘I for a chat prompt, processed on your device by default in the desktop app. On an Intel Mac, VS Code offers its Speech extension for voice chat instead.

Does it work in the terminal?

Yes: in Terminal, in the integrated terminal of VS Code or Cursor, and anywhere else ⌘V pastes text. The only key VoiceToText sends is ⌘V, never Return, so a dictated command waits at the prompt until you check it and run it yourself.

Can I say “new line” or “open paren” to insert symbols?

No. VoiceToText has no voice commands, so spoken symbol names are typed as words. The optional Clean transcript and Fix grammar actions turn cues like “comma” or “new line” into formatting. Type code symbols yourself.

Is there an AI action for coding prompts?

Yes, Improve prompt. It is off by default. Turn it on in Settings → Actions and add an OpenAI key, then press its ⌘1–⌘9 shortcut in the review panel. It rewrites the transcript as a structured prompt and sends the text to OpenAI on your key.

Can I start dictation from Raycast, Shortcuts or a script?

Yes. Run open -g voicetotext://toggle to start or stop dictation; start, stop and cancel also exist. The -g flag keeps the current app in front, so the text lands there.

Does my code or prompt leave the Mac?

Not for transcription with a local model. Audio is sent out only if you pick a cloud model, and text only if you run an AI action. The tool you paste into may still be a cloud service with its own terms.

Check the claims at the source.

Product behavior changes. These official pages were reviewed on .

Try your next coding brief out loud.

Open the prompt box you already use, speak the goal and constraints, check technical tokens, and paste the reviewed transcript.

Get it free