Without any further ado, here's an AppleScript 'text to speech' and 'speech to text' example, with a few comments to make it all easier to understand. A Mac OS X 'text to speech' and 'speech to text' example
I can't take credit for most of this script it's based on this excellent thread on, including (a) the workaround posted at the end of the thread, which partially solves the problem, and (b) my own addition, where I have to kill the Mac SpeechRecognitionServer on my system to get my AppleScript script to keep running. Mac speech recognition workaroundsįortunately, Mac AppleScript developers keep coming up with workarounds, so here's one Mac speech recognition workaround that shows: That's a real bummer, because it's a lot of fun to work with.
Many AppleScript developers on the internet are saying that Apple apparently 'broke' the speech recognition server in Leopard, and has never fixed it in Snow Leopard. I'd like to say I've been having a great time with the Mac OS X speech recognition capabilities in OS X 10.6 (Snow Leopard), but the truth is that it seems to have a lot of bugs. Mac speech recognition FAQ: How can I work around the bugs in the Apple Mac speech recognition software?