OpenAI::TranscriptionDiarizedSegment
Inherits JSON::Serializable < Reference < Object
A segment of diarized transcript text with speaker metadata.
Constructors
new(pull : JSON::PullParser)
Sourcenew(type_value : TranscriptionDiarizedSegmentType = TranscriptionDiarizedSegmentType::TranscriptTextSegment, id : String = "", start : Float32 = 0.0, end_value : Float32 = 0.0, text : String = "", speaker : String = "")
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
speaker
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, ...).
speaker=(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, ...).
type_value=(type_value : TranscriptionDiarizedSegmentType)
The type of the segment. Always transcript.text.segment.