Class: OpenAI::Models::Audio::TranscriptionDiarizedSegment
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Audio::TranscriptionDiarizedSegment
- Defined in:
- lib/openai/models/audio/transcription_diarized_segment.rb
Instance Attribute Summary collapse
-
#end_ ⇒ Float
End timestamp of the segment in seconds.
-
#id ⇒ String
Unique identifier for the segment.
-
#speaker ⇒ String
Speaker label for this segment.
-
#start ⇒ Float
Start timestamp of the segment in seconds.
-
#text ⇒ String
Transcript text for this segment.
-
#type ⇒ Symbol, :"transcript.text.segment"
The type of the segment.
Instance Method Summary collapse
-
#initialize(id:, end_:, speaker:, start:, text:, type: :"transcript.text.segment") ⇒ Object
constructor
Some parameter documentations has been truncated, see TranscriptionDiarizedSegment for more details.
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 |
#id ⇒ String
Unique identifier for the segment.
11 |
# File 'lib/openai/models/audio/transcription_diarized_segment.rb', line 11 required :id, String |
#speaker ⇒ String
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 |
#start ⇒ Float
Start timestamp of the segment in seconds.
31 |
# File 'lib/openai/models/audio/transcription_diarized_segment.rb', line 31 required :start, Float |
#text ⇒ String
Transcript text for this segment.
37 |
# File 'lib/openai/models/audio/transcription_diarized_segment.rb', line 37 required :text, String |
#type ⇒ Symbol, :"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" |