Class: LoquendoRuby::Main

Inherits:
Object
  • Object
show all
Defined in:
lib/loquendoruby.rb

Overview

This is the main class for interact with the gem

Instance Method Summary collapse

Constructor Details

#initializeMain

Returns a new instance of Main.



23
24
25
# File 'lib/loquendoruby.rb', line 23

def initialize
  @specher = LoquendoRuby::Specher.new
end

Instance Method Details

#set_voice(language_code, name) ⇒ Object



27
28
29
# File 'lib/loquendoruby.rb', line 27

def set_voice(language_code, name)
  @specher.set_voice(language_code, name)
end

#spech(text) ⇒ Object



31
32
33
# File 'lib/loquendoruby.rb', line 31

def spech(text)
  @specher.spech(text)
end