Class: Telnyx::Models::AI::AudioTranscribeResponse::Segment
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::AI::AudioTranscribeResponse::Segment
- Defined in:
- lib/telnyx/models/ai/audio_transcribe_response.rb
Instance Attribute Summary collapse
-
#end_ ⇒ Float
End time of the segment in seconds.
-
#id ⇒ Float
Unique identifier of the segment.
-
#start ⇒ Float
Start time of the segment in seconds.
-
#text ⇒ String
Text content of the segment.
Instance Method Summary collapse
- #initialize(id:, end_:, start:, text:) ⇒ Object constructor
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id:, end_:, start:, text:) ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/telnyx/models/ai/audio_transcribe_response.rb', line 39 class Segment < Telnyx::Internal::Type::BaseModel # @!attribute id # Unique identifier of the segment. # # @return [Float] required :id, Float # @!attribute end_ # End time of the segment in seconds. # # @return [Float] required :end_, Float, api_name: :end # @!attribute start # Start time of the segment in seconds. # # @return [Float] required :start, Float # @!attribute text # Text content of the segment. # # @return [String] required :text, String # @!method initialize(id:, end_:, start:, text:) # @param id [Float] Unique identifier of the segment. # # @param end_ [Float] End time of the segment in seconds. # # @param start [Float] Start time of the segment in seconds. # # @param text [String] Text content of the segment. end |
Instance Attribute Details
#end_ ⇒ Float
End time of the segment in seconds.
50 |
# File 'lib/telnyx/models/ai/audio_transcribe_response.rb', line 50 required :end_, Float, api_name: :end |
#id ⇒ Float
Unique identifier of the segment.
44 |
# File 'lib/telnyx/models/ai/audio_transcribe_response.rb', line 44 required :id, Float |
#start ⇒ Float
Start time of the segment in seconds.
56 |
# File 'lib/telnyx/models/ai/audio_transcribe_response.rb', line 56 required :start, Float |
#text ⇒ String
Text content of the segment.
62 |
# File 'lib/telnyx/models/ai/audio_transcribe_response.rb', line 62 required :text, String |