Dictate and speak/read text from Terminal

terminalvoice-dictation

I have an idea in mind for a Terminal command I run often. I haven't found answers to these on my own, and they all have to do with voice/dictation:


Dictation in Terminal

Can I dictate to the Terminal? I've tried the standard FnFn, but it only plays the sound effect that it makes when you've cancelled it. No microphone bubble appears either. Is it not possible to do this? I notice that in the Edit menu of Terminal, I find that Start Dictation is not greyed out; it's still an option.

Terminal > Edit > Start Dictation (fn fn)

I am positive that Dictation is setup correctly, it works great system-wide.

Reading output from Terminal

Can I get the output of one Terminal window and have it read to me by the system (via AppleScript)? I am essentially trying to reproduce this behavior with continuous output (I want every line that follows the first to be read):

Ctrl-click, Speech, Start Speaking

Best Answer

say. You can download different voices in Mountain Lion (not sure about older versions) and can be looked up from System Preferences

Usage: say [-v voice] [-o out] [-f in | message]

You can use command | say to stream output of the command once its completed.

The famous Vicki voice from Portal.

say -v Vicki Do not adjust your screen. You will be assimilated. The process is quick and painless, stand by