Created
April 16, 2016 20:38
-
-
Save amitizle/f6b1eb43dc799a586322b80848f3e792 to your computer and use it in GitHub Desktop.
Use OSX's `say` command with random en voice
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function sayr { | |
say -v? | grep en_ | cut -d" " -f 1 | gshuf | head -1 | xargs say "$@" -v | |
} | |
sayr "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment