Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@machty

machty/choir.sh Secret

Created June 20, 2018 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save machty/aab78711247617a0cb06541583d55aa8 to your computer and use it in GitHub Desktop.
Save machty/aab78711247617a0cb06541583d55aa8 to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
# use/uncomment this instead to weed out the annoying singing voices
#voices=`say -v ? | grep en_US | grep -v Cellos | grep -v Good | grep -v Hysterical | grep -v Bad | grep -v Pipe | grep -v Bells | cut -f1 -d ' '`
voices=`say -v ? | grep en_US | cut -f1 -d ' '`
num=`echo $voices | wc -w`
echo $voices | xargs -n 1 -P $num say $* -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment