When you code with an AI agent, most of your typing isn't code anymore. It's prompts: what you want built, what went wrong, what to try next. Good prompts are long and full of context, and that's exactly the kind of text people cut short when they have to type it. Voice to text for vibe coding fixes that, and AltNotes for Mac makes it one habit: hold Fn in any prompt box, talk through the problem the way you'd explain it to a colleague, and let go. The full context lands in the prompt. This guide shows how to set it up for Claude Code, Cursor, Codex, ChatGPT and the rest, and why it beats the alternatives.
Why speaking works better for AI prompts
- You give more context. Typed prompts get trimmed to the minimum. Spoken ones include the constraint you'd otherwise forget: "and don't touch the migration, the staging database is already on the new schema."
- You think while you talk. Explaining a bug out loud is rubber-duck debugging, and the agent is the duck that writes code.
- Your hands stay free. You can keep scrolling the diff or pointing at the failing test while you describe it.
- It's faster. Most people speak several times faster than they type, and prompts don't need perfect prose.
Why AltNotes is the best voice to text for vibe coding
- One key, every tool. The same hold-Fn habit works in the terminal running Claude Code or Codex, in Cursor or VS Code, in ChatGPT in a browser, in Slack, and in the pull request description.
- Prompts that read well. Smart Formatting tidies punctuation and paragraphs before the text goes in, so your agent gets a clear brief, not a stream of words.
- Nothing lost. Every dictation is kept in a searchable history, so a long prompt you spoke into the wrong window is one copy away.
- Part of your notes. The same app records your design reviews and standups as notes, so the thinking behind the code is easy to find later.
The rest of this guide shows how to set it up.
Set up hold-to-talk dictation with AltNotes
AltNotes for Mac includes system-wide dictation. Setup takes a couple of minutes:
- Open AltNotes › Settings › Dictation and turn it on.
- Grant the three permissions macOS asks for: Microphone, Accessibility (to paste into your terminal or editor) and Input Monitoring (to notice the key).
- Choose your key: Fn (Globe) or Right Option. If holding Fn opens the emoji picker or another macOS feature, set "Press 🌐 key to" to Do Nothing in System Settings › Keyboard, or just use Right Option.
Then, in any prompt box:
- Click into the prompt: the Claude Code terminal, Cursor's chat, Codex, or ChatGPT.
- Hold the key and talk. You can go for up to two minutes. On a MacBook, the notch shows a waveform and a timer that turns amber near the limit.
- Let go. The text is pasted where your cursor was, and your clipboard is put back the way it was. Review it, then press Return.
AltNotes was tested against the tools developers actually prompt in, including Cursor, Codex, ChatGPT in the browser, and Slack.
Smart Formatting: on or off for prompts?
Smart Formatting cleans up punctuation and paragraphs with AI before the text is inserted. For prompts, leave it on: a prompt with sentences and paragraphs is easier for you to check before you send it. Turn it off in Settings if you want your words exactly as spoken.
It never pastes into the wrong window
AltNotes pastes only into the field you were in when you started talking. If you've switched windows by the time the text is ready, it keeps the text on your clipboard so you can press Command-V wherever you want it. Your prompt never ends up in a Slack DM by accident.
Tip: if you've turned on Secure Keyboard Entry in Terminal, macOS keeps every other app from typing there, so AltNotes copies the text for you to paste instead. Turn the option off in Terminal's menu for one-step dictation.
How to dictate prompts that work
Speaking doesn't make prompts good on its own. A few habits help:
- Lead with the goal, then the context. "I want the export to include archived notes. Right now the query filters them out in the repository layer…"
- Name files and functions clearly. Say "the notes repository file" or spell out an unusual name. You can fix one word by hand faster than re-dictating.
- Say the constraints out loud. Tests that must pass, files not to touch, the style to follow. Those are the details people skip when typing.
- Keep each dictation to one thought. Two minutes is plenty for one prompt. For a bigger design discussion, record a voice note and work from the transcript.
- Read before you send. A ten-second look at the prompt is good practice for any instruction to an agent with write access.
Beyond the prompt box
The same key works everywhere you write as a developer:
- Commit messages and pull request descriptions. Explain the change out loud while it's fresh.
- Code review comments. Spoken comments tend to be kinder and clearer than terse typed ones.
- Slack replies and standup updates.
For longer thinking, like a design walkthrough, a debugging session or a debrief after an incident, record a voice note in AltNotes. You get a transcript, a summary and tasks, and Crafts can turn it into a written update. Our article on voice notes for developers and product managers covers those workflows.
Why developers stick with it
- One habit for every tool. The same key works in the terminal, the editor, the browser and Slack, so you never have to remember which tool has which voice feature.
- You stay in control. AltNotes types the words and stops there. Nothing is sent to your agent until you've read it and pressed Return.
- Up to two minutes per prompt. Enough for a detailed bug report or a full feature brief. Hold the key again to keep going.
- Private by default. Your clipboard is put back after every paste, and your audio and text are never used to train AI models.
Frequently asked questions
Does Claude Code support voice to text?
Yes, with AltNotes for Mac. Hold Fn in the terminal running Claude Code, say what you want, and let go: your prompt is typed right in. The same key works in Cursor, Codex, ChatGPT and every other app.
What's the best voice to text for vibe coding?
AltNotes for Mac: one held key in every tool you prompt in, the text placed right where your cursor is and tidied with Smart Formatting, plus a searchable history of everything you've dictated.
Can I dictate into the terminal on a Mac?
Yes. AltNotes pastes into Terminal and other terminal apps the same way it does into any other app. If the terminal has Secure Keyboard Entry turned on, AltNotes copies the text instead and you paste it with Command-V.
Does dictation work in Cursor and VS Code?
Yes. Hold the key in the chat or editor, speak, and let go. The text is inserted where your cursor was.
Is my voice used to train AI?
No. AltNotes doesn't use your audio, text or notes to train AI models.
Try it on your next prompt. Download AltNotes for Mac, turn on dictation, and hold Fn the next time Claude Code asks what to do next. Your prompts will get longer, and your agent's work will get better. For dictation in everyday apps, see our guide to voice to text on Mac.