Class: OpenAI::Models::Audio::TranscriptionTextSegmentEvent

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/audio/transcription_text_segment_event.rb,
sig/openai/models/audio/transcription_text_segment_event.rbs

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_with_error, 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_:, speaker:, start:, text:, type: :"transcript.text.segment") ⇒ Object

Parameters:

  • id —

    Unique identifier for the segment.

  • end_ —

    End timestamp of the segment in seconds.

  • speaker —

    Speaker label for this segment.

  • start —

    Start timestamp of the segment in seconds.

  • text —

    Transcript text for this segment.

  • type (defaults to: :"transcript.text.segment") —

    The type of the event. Always transcript.text.segment.



# File 'lib/openai/models/audio/transcription_text_segment_event.rb', line 43


Instance Attribute Details

#end_ ⇒ Float

End timestamp of the segment in seconds.

Returns:

  • (Float)


17
# File 'lib/openai/models/audio/transcription_text_segment_event.rb', line 17

required :end_, Float, api_name: :end

#id ⇒ String

Unique identifier for the segment.

Returns:

  • (String)


11
# File 'lib/openai/models/audio/transcription_text_segment_event.rb', line 11

required :id, String

#speaker ⇒ String

Speaker label for this segment.

Returns:

  • (String)


23
# File 'lib/openai/models/audio/transcription_text_segment_event.rb', line 23

required :speaker, String

#start ⇒ Float

Start timestamp of the segment in seconds.

Returns:

  • (Float)


29
# File 'lib/openai/models/audio/transcription_text_segment_event.rb', line 29

required :start, Float

#text ⇒ String

Transcript text for this segment.

Returns:

  • (String)


35
# File 'lib/openai/models/audio/transcription_text_segment_event.rb', line 35

required :text, String

#type ⇒ :"transcript.text.segment"

The type of the event. Always transcript.text.segment.

Returns:

  • (:"transcript.text.segment")


41
# File 'lib/openai/models/audio/transcription_text_segment_event.rb', line 41

required :type, const: :"transcript.text.segment"

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


54
# File 'sig/openai/models/audio/transcription_text_segment_event.rbs', line 54

def to_hash: -> {