Class: NitroIntelligence::TextToSpeechModel

Inherits:
Model
  • Object
show all
Defined in:
lib/nitro_intelligence/models/model.rb

Instance Attribute Summary collapse

Attributes inherited from Model

#name, #omit_output_fields

Instance Method Summary collapse

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_formatObject (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_voiceObject (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_formatsObject (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

#voicesObject (readonly)

Returns the value of attribute voices.



24
25
26
# File 'lib/nitro_intelligence/models/model.rb', line 24

def voices
  @voices
end