class

OpenAI::CreateTranscriptionResponseVerboseJson

Inherits JSON::Serializable < Reference < Object

Represents a verbose json transcription response returned by model, based on the provided input.

Constructors

new(language : String = "", duration : Float64 = 0.0, text : String = "", words : Array(TranscriptionWord) | Nil = nil, segments : Array(TranscriptionSegment) | Nil = nil, usage : TranscriptTextUsageDuration | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

duration

The duration of the input audio.

Source
duration=(duration : Float64)

The duration of the input audio.

Source
language

The language of the input audio.

Source
language=(language : String)

The language of the input audio.

Source
segments

Segments of the transcribed text and their corresponding details.

Source
segments=(segments : Array(TranscriptionSegment) | Nil)

Segments of the transcribed text and their corresponding details.

Source
text

The transcribed text.

Source
text=(text : String)

The transcribed text.

Source
usage
Source
usage=(usage : TranscriptTextUsageDuration | Nil)
Source
words

Extracted words and their corresponding timestamps.

Source
words=(words : Array(TranscriptionWord) | Nil)

Extracted words and their corresponding timestamps.

Source