Class: NitroIntelligence::TextToSpeechModel
- Defined in:
- lib/nitro_intelligence/models/model.rb
Instance Attribute Summary collapse
-
#default_response_format ⇒ Object
readonly
Returns the value of attribute default_response_format.
-
#default_voice ⇒ Object
readonly
Returns the value of attribute default_voice.
-
#response_formats ⇒ Object
readonly
Returns the value of attribute response_formats.
-
#voices ⇒ Object
readonly
Returns the value of attribute voices.
Attributes inherited from Model
Instance Method Summary collapse
-
#initialize(name:, default_voice:, default_response_format:, voices: [], response_formats: []) ⇒ TextToSpeechModel
constructor
A new instance of TextToSpeechModel.
Constructor Details
#initialize(name:, default_voice:, default_response_format:, voices: [], response_formats: []) ⇒ TextToSpeechModel
Returns a new instance of TextToSpeechModel.
29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/nitro_intelligence/models/model.rb', line 29 def initialize( name:, default_voice:, default_response_format:, voices: [], response_formats: [], ** ) super @default_voice = default_voice @default_response_format = default_response_format @voices = voices @response_formats = response_formats end |
Instance Attribute Details
#default_response_format ⇒ Object (readonly)
Returns the value of attribute default_response_format.
24 25 26 |
# File 'lib/nitro_intelligence/models/model.rb', line 24 def default_response_format @default_response_format end |
#default_voice ⇒ Object (readonly)
Returns the value of attribute default_voice.
24 25 26 |
# File 'lib/nitro_intelligence/models/model.rb', line 24 def default_voice @default_voice end |
#response_formats ⇒ Object (readonly)
Returns the value of attribute response_formats.
24 25 26 |
# File 'lib/nitro_intelligence/models/model.rb', line 24 def response_formats @response_formats end |
#voices ⇒ Object (readonly)
Returns the value of attribute voices.
24 25 26 |
# File 'lib/nitro_intelligence/models/model.rb', line 24 def voices @voices end |