Class: Telnyx::Models::AI::AudioTranscribeResponse::Segment

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/ai/audio_transcribe_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Parameters:

  • id (Float)

    Unique identifier of the segment.

  • end_ (Float)

    End time of the segment in seconds.

  • start (Float)

    Start time of the segment in seconds.

  • text (String)

    Text content of the segment.



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.

Returns:

  • (Float)


50
# File 'lib/telnyx/models/ai/audio_transcribe_response.rb', line 50

required :end_, Float, api_name: :end

#idFloat

Unique identifier of the segment.

Returns:

  • (Float)


44
# File 'lib/telnyx/models/ai/audio_transcribe_response.rb', line 44

required :id, Float

#startFloat

Start time of the segment in seconds.

Returns:

  • (Float)


56
# File 'lib/telnyx/models/ai/audio_transcribe_response.rb', line 56

required :start, Float

#textString

Text content of the segment.

Returns:

  • (String)


62
# File 'lib/telnyx/models/ai/audio_transcribe_response.rb', line 62

required :text, String