Skip to content

Instantly share code, notes, and snippets.

@xunker
Last active December 17, 2015 23:09
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save xunker/5686878 to your computer and use it in GitHub Desktop.
Save xunker/5686878 to your computer and use it in GitHub Desktop.
borg.rb - an office productivity enhancer for Mac OS only.
voices = %w[Agnes Alex Bruce Bubbles Fred Junior Kathy Princess Ralph Vicki Victoria]
phrases = [
"We are the Borg.",
"Lower your shields and surrender your ships.",
"We will add your biological and technological distinctiveness to our own.",
"Your culture will adapt to service us.",
"Resistance is futile."
]
phrases.each do |p|
voices.each_with_index do |v, i|
fork do
`say -v #{v} "#{p}"`
end
end
sleep((p.size.to_f) * 0.09)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment