Created
June 2, 2013 10:43
-
-
Save uiur/5693268 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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