Class Speaker to use text-to-speech synthesis.
Object initialization
[Source]
# File speaker.rb, line 24 def initialize() @language = "en" end
Run text-to-speech speech synthesis and say text.
# File speaker.rb, line 31 def say(text) `dcop kttsd kspeech sayText "#{text}" "#{@language}"` puts "Saying: #{text}" end
[Validate]