class

OpenAI::CreateTranscriptionResponseDiarizedJson

Inherits JSON::Serializable < Reference < Object

Represents a diarized transcription response returned by the model, including the combined transcript and speaker-segment annotations.

Constructors

new(task : CreateTranscriptionResponseDiarizedJsonTask = CreateTranscriptionResponseDiarizedJsonTask::Transcribe, duration : Float64 = 0.0, text : String = "", segments : Array(TranscriptionDiarizedSegment) = [] of TranscriptionDiarizedSegment, usage : CreateTranscriptionResponseDiarizedJsonUsage | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

duration

Duration of the input audio in seconds.

Source
duration=(duration : Float64)

Duration of the input audio in seconds.

Source
segments

Segments of the transcript annotated with timestamps and speaker labels.

Source
segments=(segments : Array(TranscriptionDiarizedSegment))

Segments of the transcript annotated with timestamps and speaker labels.

Source
task

The type of task that was run. Always transcribe.

Source
task=(task : CreateTranscriptionResponseDiarizedJsonTask)

The type of task that was run. Always transcribe.

Source
text

The concatenated transcript text for the entire audio input.

Source
text=(text : String)

The concatenated transcript text for the entire audio input.

Source
usage

Token or duration usage statistics for the request.

Source
usage=(usage : CreateTranscriptionResponseDiarizedJsonUsage | Nil)

Token or duration usage statistics for the request.

Source