Skip to content

Instantly share code, notes, and snippets.

@amitizle
Created April 16, 2016 20:38
Show Gist options
  • Save amitizle/f6b1eb43dc799a586322b80848f3e792 to your computer and use it in GitHub Desktop.
Save amitizle/f6b1eb43dc799a586322b80848f3e792 to your computer and use it in GitHub Desktop.
Use OSX's `say` command with random en voice
#!/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