Skip to content

Instantly share code, notes, and snippets.

@AndyQ
Created January 28, 2014 15:57
Show Gist options
  • Select an option

  • Save AndyQ/8670318 to your computer and use it in GitHub Desktop.

Select an option

Save AndyQ/8670318 to your computer and use it in GitHub Desktop.
OSX Speak a phrase with all the default voices
#!/bin/bash
text=$1
if [[ "$text" == "" ]]; then
text="Hello World"
fi
echo "Female"
for voice in Agnes Kathy Princess Vicki Victoria; do
echo $voice
say -v $voice $text
done
echo "Male"
for voice in Alex Bruce Fred Junior Ralph; do
echo $voice
say -v $voice $text
done
echo "Novelty"
for voice in Albert Bad Bahh Bells Boing Bubbles Cellos Deranged Good Hysterical Pipe Trinoids Whisper Zarvox; do
echo $voice
say -v $voice $text
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment