class

OpenAI::TranscriptionDiarizedSegment

Inherits JSON::Serializable < Reference < Object

A segment of diarized transcript text with speaker metadata.

Constructors

new(type_value : TranscriptionDiarizedSegmentType = TranscriptionDiarizedSegmentType::TranscriptTextSegment, id : String = "", start : Float32 = 0.0, end_value : Float32 = 0.0, text : String = "", speaker : String = "")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

end_value

End timestamp of the segment in seconds.

Source
end_value=(end_value : Float32)

End timestamp of the segment in seconds.

Source
id

Unique identifier for the segment.

Source
id=(id : String)

Unique identifier for the segment.

Source
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, ...).

Source
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, ...).

Source
start

Start timestamp of the segment in seconds.

Source
start=(start : Float32)

Start timestamp of the segment in seconds.

Source
text

Transcript text for this segment.

Source
text=(text : String)

Transcript text for this segment.

Source
type_value

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

Source
type_value=(type_value : TranscriptionDiarizedSegmentType)

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

Source