class CW::Voice
class Speak speaks with a voice
Public Class Methods
new(options = {})
click to toggle source
# File lib/cw/voice.rb, line 9 def initialize(options = {}) @options = options end
Public Instance Methods
say(words, rate = 300, voice = 'bruce')
click to toggle source
# File lib/cw/voice.rb, line 13 def say words, rate = 300, voice = 'bruce' system("say #{words} -ospoken.wave -r#{rate} -v#{voice}") system("afplay spoken.wave") end