Launch sale: 50% off every app
Winter Labs

How to dictate prompts into Claude Code and Cursor on a Mac

Dictate prompts into Claude Code, Cursor or ChatGPT with push-to-talk on a Mac: a six-step setup, a jargon dictionary and a spoken prompt template.

By Updated 6 min read

The quality of what an AI coding agent produces tracks the quality of the prompt, and good prompts are long: what you want, why, where in the code base, what not to touch, and how to tell when it’s done. Typing all of that is exactly the step people skip. Saying it out loud is easier, and on a Mac you can do it with a push-to-talk key that types straight into Claude Code’s terminal prompt, Cursor’s chat box, Windsurf or ChatGPT.

This guide sets that up with MacVoice, our local Whisper dictation app, and then covers the part that matters more than the tool: how to speak a prompt an agent can act on.

Why voice works well for prompts

  • You explain more when you talk. Spoken prompts naturally include the background and the “because” that you’d trim when typing.
  • Prompts tolerate loose phrasing. Unlike code, a prompt doesn’t need to be character-perfect. A model reads intent, so small transcription slips rarely matter.
  • Your hands stay on the keyboard and mouse. You can keep the relevant file open, scroll through the failing test and describe what you see as you see it.

The weak spot is jargon. Speech models are trained on everyday language, so library names, product names and camelCase identifiers are where they stumble. The personal dictionary in step 3 is the fix.

Step-by-step setup

1. Install MacVoice and grant permissions

MacVoice needs macOS 14 or later on Apple Silicon. Drag it into Applications; on first launch, open it once and then click Open Anyway in System Settings → Privacy & Security, since the build isn’t notarized yet. It asks for three permissions, each for one reason: Microphone to hear you, Input Monitoring to detect the push-to-talk key, and Accessibility to type into the focused app. Then open Models in the sidebar and download a Whisper model: the page recommends one for English and one for other languages, sized for your Mac, and lists 49 in all, from Tiny to Large v3 Turbo. Our offline voice to text guide explains the model sizes.

2. Choose a push-to-talk key

You can hold Fn/Globe or record any key or modifier chord. Pick one that your editor, terminal and window manager don’t already use, and that you can hold comfortably for twenty or thirty seconds while you talk. Hold to record, release to transcribe: there’s no separate “stop” step to forget.

MacVoice’s shortcut settings: push-to-talk on Fn / Globe with a Change button, an optional hands-free toggle, and ⌘⇧Space to bring the widget to the front
MacVoice’s shortcut settings: hold Fn / Globe to talk, or pick your own key.

3. Teach the dictionary your jargon

MacVoice’s personal dictionary replaces phrases before the text is inserted. Each time Whisper mishears a term you use often, add one entry and that mistake is fixed for good. What gets misheard depends on your model, accent and microphone, so build the list from what you actually see. Entries for a typical web project might look like this:

If the transcript saysReplace with
cloud codeClaude Code
next JSNext.js
type scriptTypeScript
use effectuseEffect
post gressPostgres
MacVoice’s personal dictionary with two saved terms: “whisper cpp” becomes whisper.cpp and “j son” becomes JSON
The personal dictionary rewrites misheard terms before they reach your prompt.

4. Focus the prompt box

Dictation goes wherever your cursor is. For Claude Code, that’s the prompt in your terminal; for Cursor or Windsurf, click into the chat input. MacVoice types via the Accessibility API, and if an app won’t accept that, it falls back to pasting through the clipboard and then restores whatever you had copied.

5. Hold the key and speak the prompt

Hold the key, talk, release. The floating widget shows a live waveform while it’s listening, so you know it’s hearing you. The structure below is easy to remember and covers what agents most often lack.

6. Review, then send

Read the inserted text before you press Return. Fix exact file paths, flags or identifiers by hand; those are the places where one wrong character matters. Everything else can usually stay as spoken.

A spoken prompt template: goal, context, limits, done

Speak your prompt in four short parts, in this order:

  1. Goal: one sentence on the outcome. “Add pagination to the orders table.”
  2. Context: where it lives and why. “The table is in the orders page component; the API already accepts page and limit parameters.”
  3. Limits: what not to change. “Don’t touch the API route and don’t add a new dependency.”
  4. Done: how to verify. “It’s done when the type check passes and the existing tests still pass.”

Spoken together, that becomes something like:

Add pagination to the orders table. The table is in the orders page component, and the API already accepts page and limit parameters, so this is a front-end change only. Don’t touch the API route and don’t add a new dependency. Show twenty rows per page with next and previous buttons. It’s done when the type check passes and the existing tests still pass. Before you edit anything, tell me which files you plan to change.

That’s roughly half a minute of talking. Typing it is where most people would have stopped after the first sentence.

Tips that make dictated prompts better

  • Think, then hold. Decide your first sentence before pressing the key. Pauses are fine, but a clear opening keeps the rest on track.
  • Dictate the reasoning, type the references. Say the why and the what in prose; type or paste exact paths, commands and error messages.
  • Use short bursts for follow-ups. “Good, now do the same for the invoices table” is a two-second hold.
  • Search your history. MacVoice keeps a searchable history of what you dictated, stored only on your Mac, so a long prompt you liked last week is easy to find and reuse.
  • Mind the room. Close-up microphones handle open offices far better than a laptop’s built-in mic across the desk.
MacVoice’s Home screen: words, speaking time, recordings and average pace above the most recent dictations
MacVoice’s home screen lists recent dictations, words and speaking time.

Troubleshooting

Nothing is typed when you release the key

Check System Settings → Privacy & Security and make sure MacVoice is allowed under Microphone, Input Monitoring and Accessibility. After an update, macOS may ask you to approve these permissions again; that’s expected.

The text lands in the wrong place

MacVoice types into whichever field has focus when you release the key. Click into the prompt first, and avoid switching windows while you’re still holding the key.

The same term comes out wrong every time

Add a dictionary entry for it. If many ordinary words are wrong too, try a larger model, for example Small instead of Tiny or Base; larger Whisper models trade some speed for accuracy.

You prompt in another language

Download a multilingual model from the Models page instead of an English-only one; search it for your language to see the models that transcribe it. Then choose your language in Settings → Transcription, or leave it on auto-detect.

The shortcut clashes with your editor

Record a different key or chord in MacVoice’s shortcut settings. Modifier chords that your editor doesn’t bind are the least likely to collide.

What about privacy?

Be clear about what local dictation does and doesn’t protect. With MacVoice, transcription runs on your Mac and audio stays in memory, so your voice isn’t sent to a transcription service. The prompt text itself still goes to whichever AI tool you send it to, under that tool’s own terms. Cloud dictation tools add a second party: Wispr Flow, which markets itself for coding in Cursor and Windsurf, states that its “transcription always happens in the cloud.” That may be fine for you; it’s worth knowing either way.

Where to go next

If you’re still choosing a dictation app, our Superwhisper alternatives roundup and MacVoice vs MacWhisper cover the main options honestly. Browse all voice dictation guides, or see everything MacVoice does, and its price, on its product page.

Sources

More on this topic: Voice dictation guides · MacVoice

Keep reading