Dictating into Terminal on a Mac
A terminal is an odd place to talk to, until you're prompting a coding agent all day. Here's how voice and the shell get along.
Voice options in the terminal
| Name | Terminal itself | macOS Dictation | |
|---|---|---|---|
| Types into the app | No voice input | Yes, in any text field | Yes, wherever the cursor is |
| Where speech is turned into text | Not applicable | On the Mac or on Apple's servers, depending on the language | On your Mac; works offline |
| Price | Not applicable | FreeFree, built in | FreePaid once2,000 words a week free, Pro $4.99 once |
| Languages | Not applicable | Many, not every language or region | About 99, mixed in one sentence |
What the terminal does with pasted text
Speakey types by pasting, which is good news in a shell. zsh has had bracketed paste on by default since version 5.1, so a pasted line is treated as text and a newline inside it doesn't run anything. iTerm2 can also warn before a multi-line paste (Edit › Paste Special).
Some CLI tools listen themselves: Claude Code has `/voice`, and GitHub Copilot CLI has `/voice` too. Each works only inside its own tool.
Talking to a CLI
- Click into the Terminal or iTerm2 window so the prompt has focus.
- Hold Right Option, say the prompt or message, release.
- Check what landed, then press Return.
Terminal tips
- Commands like `git commit -m` are faster typed. Type the command, open the quotes, and dictate the message inside them.
- Terminal's Secure Keyboard Entry (Terminal menu) stops other apps from detecting what you type there. If a dictation shortcut does nothing in Terminal, check whether it's on.
- Working on a remote machine over SSH? Speakey pastes into your local terminal window, so the text reaches the remote shell like typing would.
- Turn Keep text in clipboard on in Settings › Dictation › Advanced if you want to paste the same prompt somewhere else after.
What Terminal sees
Speakey's speech-to-text happens on the Mac with no network. Claude Code's `/voice`, by contrast, streams audio to Anthropic for transcription, per its docs.
Questions
Can I dictate into Terminal on Mac?
Yes. macOS Dictation and Speakey both type into Terminal and iTerm2. Speakey pastes the text; zsh won't run it until you press Return.
Will a dictated command run by itself?
Not in zsh with bracketed paste, which is on by default. The text waits at the prompt.
Does it work over SSH?
Yes. The text goes into your local terminal window and on to the remote shell, like typing.
Sources
Facts about other apps come from their own pages, checked when this page was updated. Prices and plans change, so check before you buy.
apple.com