Mac speech recognition software FAQ: Can I add my own commands to the Mac speech recognition software system, and if so, how?
While the built-in Mac speech recognition software doesn't recognize voices nearly as well as Sphinx-4, it does have one virtue: You can add custom commands to it fairly easily, as long as you don't mind writing a little AppleScript.
The short story is that if you go to this folder:
/Users/Al/Library/Speech/Speakable Items
on your computer system (replacing "Al" with your home directory name), you'll find a folder with a number of Mac plist files and a few AppleScript files. You'll also find a subdirectory named "Application Speakable Items" that has folders named after some of the Mac applications installed on your system, including Finder, Mail, Safari, Internet Explorer(?), and possibly others.
I don't have enough time to give you all the details of creating your own custom Mac speech recognition software commands today, but as a quick example, just follow these steps:
As a very simple example, your AppleScript file can contain this one-line:
say "Hello, user"
So when you say "Say hello" to your computer, it will speak back the words "Hello, user" in whatever your default system voice is.
I'll come back and update this article within a few days, but if you're interested in working with the Mac speech recognition software asap, there are a few important things to know:
Post new comment