ValcyValcy

Fix Mac Dictation Not Working in Terminal or iTerm2

Everything works fine in Apple Notes or Chrome, then you click into Terminal or iTerm2, press your dictation key, and nothing happens. You didn't break anything, macOS turns on a safety lock inside terminals by default.

4 min read · Updated November 2026

The short answer

In most cases, Mac dictation fails inside Terminal or iTerm2 because of a setting called Secure Keyboard Entry, which blocks outside apps from typing into Terminal. Open Terminal (or iTerm2) in the top menu bar and uncheck Secure Keyboard Entry, then verify Microphone permissions under System Settings > Privacy & Security.
  • Uncheck Secure Keyboard Entry in Terminal or iTerm2's top menu bar.
  • Check that Terminal / iTerm2 has Microphone access enabled in System Settings.
  • Make sure macOS Voice Control isn't turned on by mistake and fighting normal Dictation.
  • Run killall corespeechd if Mac's dictation icon shows up but refuses to type.

1. Uncheck Secure Keyboard Entry (fixes most cases right away)

macOS terminals include a lock called Secure Keyboard Entry. It stops other apps from watching what you type, handy when entering passwords, annoying when you actually want a voice tool or text expander to type for you.

Click Terminal (or iTerm2) in the top-left Apple menu bar while the window is open, look for Secure Keyboard Entry, and click it so the checkmark disappears. If you use Warp, open Warp Settings > Privacy and turn Secure Keyboard Entry off there too.

2. Check Microphone and Accessibility permissions

After a macOS update, apps occasionally lose permission to listen or accept typed input.

Open System Settings > Privacy & Security > Microphone and make sure Terminal, iTerm2, or VS Code is switched On. Then open Privacy & Security > Accessibility right below it and verify the app (plus any third-party dictation app like Valcy) is toggled On too.

3. Make sure Voice Control isn't fighting Dictation

macOS has two similarly named voice features: Dictation (for typing text) and Voice Control (for clicking buttons by number and navigating menus).

If Voice Control gets flipped on accidentally, it steals microphone priority. Open System Settings > Accessibility > Voice Control and turn it off if you only want to dictate text.

If the mic pops up and hangs, open a terminal and run killall corespeechd to kick-start Apple's speech background service.

4. Check if a terminal shortcut is stealing your hotkey

If your dictation shortcut is Control + Space or Option + Space, Zsh plugins, Oh My Zsh, tmux, or Vim mode might swallow that key combo before macOS ever sees it.

Try assigning dictation to double-tapping Right Command or tapping F5 under System Settings > Keyboard > Dictation, or test with default terminal settings by running zsh -f to see if your .zshrc config is intercepting keys.

Common problems and quick fixes

Dictation types into Safari and Notes, just not Terminal or iTerm2

Almost certainly Secure Keyboard Entry. Click Terminal or iTerm2 in the menu bar at the top of your screen and uncheck Secure Keyboard Entry.

My terminal isn't even listed under Privacy & Security > Microphone

Open Terminal, trigger dictation once so macOS asks for mic access, and click Allow.

If macOS never prompts you, run tccutil reset Microphone in Terminal to clear stuck permission prompts and reopen your apps.

Voice typing triggers a bell sound or prints weird characters in Terminal

Older dictation tools sometimes send raw keystrokes instead of pasting clean text, which makes terminal editors or prompts treat punctuation or line breaks strangely.

Pick a tool (like Valcy) that pastes clean text safely without firing accidental Enter keys.

Common questions

Why does dictation work in every app except my terminal?

Terminals turn on a security setting called Secure Keyboard Entry so background apps can't read your typed passwords. That same shield blocks dictation tools until you uncheck it under Terminal > Secure Keyboard Entry.

Is it safe to leave Secure Keyboard Entry off?

For normal coding, git commits, and prompting AI agents like Claude Code, yes, you only lose protection against keylogging inside that terminal window. If you type raw secrets or passwords manually, just toggle it back on beforehand or use a password manager CLI.

How do I restart macOS Dictation when it freezes in Terminal?

Run killall corespeechd (and killall com.apple.speech.recognitionserver on some macOS releases) in Terminal, wait two seconds, and try your shortcut again.

What is the best dictation shortcut for developers?

Tapping the F5 microphone key once or double-tapping Right Command rarely conflicts with terminal shortcuts like Control + R, Control + C, or Vim bindings.

Speak AI prompts and Git commits into Terminal cleanly

Speak naturally in any app, offline on Mac or via private Cloud Mode on Mac and iPhone.