Skip to content

Instantly share code, notes, and snippets.

@djohnsonjr
Created April 29, 2011 20:34
Show Gist options
  • Save djohnsonjr/948988 to your computer and use it in GitHub Desktop.
Save djohnsonjr/948988 to your computer and use it in GitHub Desktop.
Hear all of the voices on the mac from IRB
# drop in irb
voices = ["Agnes", "Kathy", "Princess", "Vicki", "Victoria", "Bruce", "Fred",
"Junior", "Ralph", "Albert", "Bad News", "Bahh", "Bells", "Boing", "Bubbles",
"Cellos", "Deranged", "Good News", "Hysterical", "Pipe Organ", "Trinoids", "Whisper", "Zarvox"]
statement = "hello world"
voices.each do |v|
`say -v #{v} "hi, I am #{v} and I want to say, #{statement}"`
end
@dcoder2099
Copy link

say -v Cellos "do do do do do di doo do di di do do do do do do do di do di do di do do di Do,"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment