I discovered the say command on Mac OSX today and needless to say I’ve been having fun with it.

Usage is dead simple:

say "Hello, this is your terminal speaking"

say -v Whisper --interactive "Hello, this is your terminal speaking"

Here’s a little bash pipeline that recites cat facts:

curl -s http://catfacts-api.appspot.com/api/facts?number=1 | jq -r ".facts[0]" | say $1 --interactive=white/blue