Skip to content

Instantly share code, notes, and snippets.

@bxt
Last active August 8, 2017 09:46
Show Gist options
  • Save bxt/079b5ce7e8b8ab91b7fc to your computer and use it in GitHub Desktop.
Save bxt/079b5ce7e8b8ab91b7fc to your computer and use it in GitHub Desktop.
# Test all the voices:
say -v '?' | awk '{ print($0); c1="say -v "$1" "; $1=""; $2=""; $3=""; c=c1 "\"" $0 "\""; system(c); }'
# Test the english voices only:
say -v '?' | awk '/en_US/{ print($0); c1="say -v "$1" "; $1=""; $2=""; $3=""; c=c1 "\"" $0 "\""; system(c); }'
# Test the international voices:
say -v '?' | awk '!/en_US/{ print($0); c1="say -v "$1" "; $1=""; $2=""; $3=""; c=c1 "\"" $0 "\""; system(c); }'
# Creepy:
while true; do say -v whisper help me; sleep 10; say -v whisper help me please; sleep 5; done
# Tell the time:
date "+Heute ist %A, der %d. %B %Y. Es ist %l Uhr %M und %S Sekunden" | say
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment