Class: OpenAI::Models::Audio::TranscriptionTextSegmentEvent
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Audio::TranscriptionTextSegmentEvent
- Defined in:
- lib/openai/models/audio/transcription_text_segment_event.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 event.
Instance Method Summary collapse
-
#initialize(id:, end_:, speaker:, start:, text:, type: :"transcript.text.segment") ⇒ Object
constructor
Emitted when a diarized transcription returns a completed segment with speaker information.
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
Emitted when a diarized transcription returns a completed segment with speaker information. Only emitted when you [create a transcription](platform.openai.com/docs/api-reference/audio/create-transcription) with ‘stream` set to `true` and `response_format` set to `diarized_json`.
|
|
# File 'lib/openai/models/audio/transcription_text_segment_event.rb', line 43
|
Instance Attribute Details
#end_ ⇒ Float
End timestamp of the segment in seconds.
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.
11 |
# File 'lib/openai/models/audio/transcription_text_segment_event.rb', line 11 required :id, String |
#speaker ⇒ String
Speaker label for this segment.
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.
29 |
# File 'lib/openai/models/audio/transcription_text_segment_event.rb', line 29 required :start, Float |
#text ⇒ String
Transcript text for this segment.
35 |
# File 'lib/openai/models/audio/transcription_text_segment_event.rb', line 35 required :text, String |
#type ⇒ Symbol, :"transcript.text.segment"
The type of the event. Always ‘transcript.text.segment`.
41 |
# File 'lib/openai/models/audio/transcription_text_segment_event.rb', line 41 required :type, const: :"transcript.text.segment" |