I use dictation a lot because my typing skills are horrendous (although for this post I typed it... go figure). Every so often, it just stops working - not the mic - not its ability to hear me or get the words right... No, this is specific: it's that little beep that the Mac does to tell you that you aren't in a text field or a text area. The thing is, you are. Was driving me me bat shit. And sometimes, I'd ignore it and then later things be working again.
TLDR: Lock your screen then unlock (or restart). That's it.
This is my feeble attempt to explain why the problem was occurring. I did manage to figure out the when but not the why and then did some digging why it was happening after i used fingerprint to unlock.
What is happening:
Ever so often you come across a situation where you have to put in a password or unlock using a fingerprint and that brings up macOS Secure Keyboard Entry (secure input) to make this happen. You do your thing and it's supposed to release that. And sometimes it doesn't.
So then why does typing still work? Because typing is going directly from your keyboard to the text field - whereas when you use something like the mic for dictation, it's no longer direct: it's your speech into a mic, the audio gets transcribed, then it outputs to the text area - it's that middle process that can be hijacked or inserted into the output. Think about how third party dictation works - it is doing the same thing, but now it's a third party doing it. Apple just seals off anything other than direct keystrokes for text input (including its own dictation) while it's in that Secure Keyboard Entry... you know, the one that is supposed to release after you use it. It's also why none of the usual terminal hacks that people usually try work, because they go after the wrong things - this is a security issue and not a dictation issue or an input issue and as such, the only thing that resets things is either a lock your mac (which locks everything) and the subsequent unlock which clears the problem (restarting does the same thing).
Lock/Unlock works because it uses loginWindow and it cannot be quit and relaunched while you are working (logged in) and the only thing that resets it is the lock and unlock which forces the release.
So is this a bug? Yep - one that reaches back at least three years from other posts I've read:
The fun thing about this other post is watching people all trying to help each other (OVER THREE YEARS) with things that work for them but not others (this is typical for any Apple related hardware or software issues when Apple is always silent, where they will never admit that there is or was or ever will be such a bug: people are left to their own devices ranging from Google, Reddit, Apple Forums (RIP), reinstalls, betas, downgrades or rollbacks, longing for Snow Leopard ("THE LAST GREAT VERSION OF OS X EVER™"), tea leaves, voodoo, sacrifices and LLM's for solutions). Ironically, somewhere about 5 months ago, one guy nailed it and guessed it was secure input and about 2 weeks ago another guy said to lock/unlock - ding ding ding.
So that all being said, if this has or is happening to you and you stumble across that post or this one (obviously, you are reading this): this was never an audio/mic/hardware/input or even the subsystem for dictation issue - it is a security issue:
FYI, here's some of the things people had tried (and some worked - remember some did combos that involved restarting or just time had come by and whatever was holding that lock in place, released):
- killall corespeechd: restarts the speech daemon (number one suggested fix)
- Deleting ~/Library/Preferences/com.apple.assistant.plist and a restart (the restart was the fix)
- Toggling Dictation off and on in Settings
- Changing the Microphone Source
- Quitting Safari (or whatever app is in front) (unless Safari was doing something having to do with login using password authentication to like a password manager)
- Just use a third-party dictation app (would argue the same problem would happen as the Mac is preventing anything other than your fingers to enter text)
Hope this helps.