Skip to content

Instantly share code, notes, and snippets.

@uiur
Created June 2, 2013 10:43
Show Gist options
  • Save uiur/5693268 to your computer and use it in GitHub Desktop.
Save uiur/5693268 to your computer and use it in GitHub Desktop.
# Mac only
voices = %w{Alex Deranged Victoria Zarvox Fred Ralph Agnes Vicki Albert}
(1..10000).each do |i|
current_voice = voices[i%(voices.size)]
str = ''
str = 'Fizz' if i % 3 == 0
str << 'Buzz' if i % 5 == 0
puts current_voice + ": " + (str.empty? ? i : str).to_s
`say -v #{current_voice} #{str.empty? ? i : str}`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment