Class Speaker
In: speaker.rb
Parent: Object

Class Speaker to use text-to-speech synthesis.

Methods

new   say  

Public Class methods

Object initialization

[Source]

# File speaker.rb, line 24
        def initialize()
                @language = "en"
        end

Public Instance methods

Run text-to-speech speech synthesis and say text.

[Source]

# File speaker.rb, line 31
        def say(text)
                `dcop kttsd kspeech sayText "#{text}" "#{@language}"`
                puts "Saying: #{text}"
        end

[Validate]