Class: OpenAI::Models::Audio::TranscriptionDiarizedSegment

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/audio/transcription_diarized_segment.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_:, speaker:, start:, text:, type: :"transcript.text.segment") ⇒ Object

Some parameter documentations has been truncated, see OpenAI::Models::Audio::TranscriptionDiarizedSegment for more details.

A segment of diarized transcript text with speaker metadata.



# File 'lib/openai/models/audio/transcription_diarized_segment.rb', line 45


Instance Attribute Details

#end_Float

End timestamp of the segment in seconds.



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

required :end_, Float, api_name: :end

#idString

Unique identifier for the segment.



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

required :id, String

#speakerString

Speaker label for this segment. When known speakers are provided, the label matches ‘known_speaker_names[]`. Otherwise speakers are labeled sequentially using capital letters (`A`, `B`, …).



25
# File 'lib/openai/models/audio/transcription_diarized_segment.rb', line 25

required :speaker, String

#startFloat

Start timestamp of the segment in seconds.



31
# File 'lib/openai/models/audio/transcription_diarized_segment.rb', line 31

required :start, Float

#textString

Transcript text for this segment.



37
# File 'lib/openai/models/audio/transcription_diarized_segment.rb', line 37

required :text, String

#typeSymbol, :"transcript.text.segment"

The type of the segment. Always ‘transcript.text.segment`.



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

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