Class: Typecast::Models::TTSResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(audio_data:, duration:, format:) ⇒ TTSResponse

Returns a new instance of TTSResponse.



139
140
141
142
143
# File 'lib/typecast/models.rb', line 139

def initialize(audio_data:, duration:, format:)
  @audio_data = audio_data
  @duration = duration
  @format = format
end

Instance Attribute Details

#audio_data ⇒ Object (readonly)

Returns the value of attribute audio_data.



137
138
139
# File 'lib/typecast/models.rb', line 137

def audio_data
  @audio_data
end

#duration ⇒ Object (readonly)

Returns the value of attribute duration.



137
138
139
# File 'lib/typecast/models.rb', line 137

def duration
  @duration
end

#format ⇒ Object (readonly)

Returns the value of attribute format.



137
138
139
# File 'lib/typecast/models.rb', line 137

def format
  @format
end