Skip to content
Petal

ComparisonsMac4 min read

Dictation App for Coding on Mac: Claude Code, Cursor

Pick a dictation app for coding on Mac. Compare Claude Code /voice with system-wide apps like Petal for agent prompts in any terminal, Cursor, or IDE.

Published by Optimal Apps, the maker of Petal.

On this page

The best dictation app for coding on Mac depends on where you type. If you use only the Claude Code CLI, its built-in /voice command is the easiest start. If you move between a terminal, Cursor, Codex, and a browser, a system-wide app such as Petal gives you one shortcut for all of them, and it can keep your audio on the Mac. This guide compares the options and shows a setup that works for agent prompts.

Disclosure: Optimal Apps publishes Petal. We describe the other tools only from their official documentation.

The options at a glance

Option Works in Where speech runs Cost
Claude Code /voice Claude Code CLI and its VS Code extension Anthropic's servers Included with a Claude.ai account; does not count toward usage limits
Petal Any Mac app On your Mac Free, MIT license
Wispr Flow Any app Cloud Free with a weekly word limit; Pro $15/month
Superwhisper Any app On your Mac or cloud Free local models; Pro from $8.49/month
Apple Dictation Any app On device for many languages Free

Some editors, such as Cursor, also have their own voice input. Check each editor's docs for where it sends the audio.

Claude Code /voice: the built-in option

Anthropic's voice dictation docs describe the feature clearly:

  • Run /voice, then hold Space to record. Release to finalize. /voice tap starts and sends with a tap.
  • Transcription is tuned for coding words such as regex, OAuth, and JSON. Claude Code also adds the project name and the git branch as hints.
  • The audio streams to Anthropic's servers. It is not processed on your Mac.
  • It needs a Claude.ai sign-in. It is not available with an Anthropic API key, Bedrock, or other providers.
  • It does not work in SSH sessions, cloud sessions, or VS Code Remote sessions.
  • It supports 20 languages.

For a Claude Code user on a Claude.ai plan, this is a strong default. It knows your repo's words, and it costs nothing extra. It does not help when you type in another tool.

A system-wide app: one shortcut for every tool

A system-wide dictation app types into the app in front. The same shortcut works in Ghostty, Terminal, iTerm2, VS Code, Cursor, Xcode, the Codex app, a ChatGPT window, and a pull request comment in Safari.

This matters for three cases:

  1. You use more than one agent. One habit works for Claude Code, Codex, and Cursor.
  2. You work over SSH. The dictation app runs on your Mac and pastes text into the SSH session, so the remote host never needs a microphone.
  3. You must keep audio local. With a local speech model, your voice never leaves the Mac. The agent gets only text.

Set up Petal for agent prompts

Petal for Mac is free and open source. These steps take about five minutes.

  1. Download Petal and give it Microphone and Accessibility access.
  2. Open Settings > Models and download a model. Parakeet 110M is fast for English. Parakeet 0.6B V3 covers 25 European languages.
  3. Open Settings > Router and add a route for your terminal, for example Ghostty.
  4. Choose what that route does:
    • The As Said style keeps every word as you spoke it. Use this for commands and file names.
    • Petal W1 as the route's intelligence removes fillers and false starts on the Mac. Use this for long prompts.
    • The AI Prompt preset turns a ramble into a clear prompt with a cloud model and your own key. Petal sends only the transcript text to the provider that you choose.
  5. Press Option-Space, speak your prompt, and press Option-Space again. Petal pastes the text and restores your old clipboard.

Other apps keep the default cleanup, so mail and chat still get clean sentences. For more on routes, read per-app dictation cleanup.

Tips for dictating to coding agents

  • Speak the intent, not the syntax. Say "rename the user ID field to account ID in the API layer and update the tests". Do not say "open paren".
  • Name files the way you see them. Say "the file auth middleware dot ts". Then check the name before you press Return.
  • Keep a review step. Paste, read, then press Return. A wrong word in a prompt can send an agent the wrong way.
  • Use a route without cleanup for commands. A cleanup model can "fix" a flag or a path. The As Said style keeps it exact.

When another tool fits better

  • Claude Code only, on a Claude.ai plan: /voice is built in and knows your project's words.
  • Windows or Android too: Wispr Flow and Superwhisper run on more platforms. Petal for Windows is a separate project.
  • An Intel Mac: Petal needs Apple silicon.

If dictation does not paste in your editor or terminal, read dictation not working in VS Code, Terminal, or Claude Code. For the full list of Mac apps, read the best dictation app for Mac comparison.

Questions

Does Claude Code have built-in dictation?

Yes. Run /voice in the Claude Code CLI and hold Space to speak. Anthropic's docs say that it streams the audio to Anthropic's servers, needs a Claude.ai account, and does not work in SSH or cloud sessions.

Can I dictate to Claude Code without sending audio to the cloud?

Yes. Use a system-wide dictation app that runs the speech model on your Mac, such as Petal. Petal pastes the text into the terminal, and Claude Code receives only text.

Should I dictate code or prompts?

Dictate prompts. Speech models are good at sentences and bad at symbols and indentation. Say what you want the agent to change, and let the agent write the code.

How do I stop dictation cleanup from changing my commands?

In Petal, open Settings > Router, add a route for your terminal, and choose the As Said style. That route pastes the raw transcript, and other apps keep their own cleanup.

Does Petal work in VS Code, Cursor, and Ghostty?

Yes. Petal pastes into the app in front, so it works in editors, terminals, and the chat boxes of coding agents. It restores your old clipboard after the paste.

ComparisonsMac

Best Dictation App for Mac: 8 Apps Compared

The best dictation app for Mac depends on price, privacy, and offline use. Compare Petal, Apple Dictation, Wispr Flow, Superwhisper, and 4 more.

ComparisonsMac

Petal vs Apple Dictation on Mac

Petal vs Apple Dictation on Mac: compare the silence stop, model choice, Petal W1 cleanup, offline use on Apple silicon, history, and what Apple does well.