Class: FreeTTS::Voice
- Inherits:
-
Object
- Object
- FreeTTS::Voice
- Defined in:
- lib/freetts/voice.rb
Constant Summary collapse
- DEFAULT_NAME =
"kevin16"
- ACCESSIBLE_ATTRIBUTES =
%w( age description domain duration_stretch gender locale name organization pitch pitch_range pitch_shift rate run_title style volume )
- MODIFIABLE_ATTRIBUTES =
%w( duration_stretch pitch pitch_range pitch_shift rate volume )
Class Attribute Summary collapse
-
.voice_manager ⇒ Object
readonly
Returns the value of attribute voice_manager.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(voice) ⇒ Voice
constructor
A new instance of Voice.
- #speak(saying) ⇒ Object
Constructor Details
#initialize(voice) ⇒ Voice
Returns a new instance of Voice.
44 45 46 |
# File 'lib/freetts/voice.rb', line 44 def initialize(voice) @voice_impl = voice end |
Class Attribute Details
.voice_manager ⇒ Object (readonly)
Returns the value of attribute voice_manager.
13 14 15 |
# File 'lib/freetts/voice.rb', line 13 def voice_manager @voice_manager end |
Class Method Details
.all ⇒ Object
15 16 17 |
# File 'lib/freetts/voice.rb', line 15 def all voice_manager.get_voices.map { |voice| voice.get_name } end |
Instance Method Details
#speak(saying) ⇒ Object
48 49 50 |
# File 'lib/freetts/voice.rb', line 48 def speak() @voice_impl.speak() end |