Skip to content

Instantly share code, notes, and snippets.

@mactkg
Created January 14, 2016 09:47
Show Gist options
  • Save mactkg/743f190c73afd267e523 to your computer and use it in GitHub Desktop.
Save mactkg/743f190c73afd267e523 to your computer and use it in GitHub Desktop.
voices = ["Agnes", "Kathy", "Princess", "Vicki", "Victoria", "Alex", "Bruce", "Fred", "Junior", "Ralph", "Albert", "Bad News", "Bahh", "Bells", "Boing", "Bubbles", "Cellos", "Deranged", "Good News", "Hysterical", "Pipe Organ", "Trinoids", "Whisper", "Zarvox"]
voices.each do |voice|
puts voice
system "say -v #{voice} -o #{voice} #{ARGV[0]}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment