Sha256: 3b736618f9b27c0df9aacc71ef5025fef596023cfcb2d72573fa0f0469a2f5e7
Contents?: true
Size: 746 Bytes
Versions: 1
Compression:
Stored size: 746 Bytes
Contents
require "voiceinspect/version" module Voiceinspect def self.voices [ "Victoria", "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" ] end def self.say(message, options={}) if options[:voice] != nil if voices.include?(options[:voice]) then voice = options[:voice] else voice = "Victoria" end else voice = "Vicki" end system "say -v #{voice} '#{message}' &" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
voiceinspect-0.0.1 | lib/voiceinspect.rb |