class

OpenAI::CreateTranscriptionResponseJson

Inherits JSON::Serializable < Reference < Object

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

Constructors

new(text : String = "", logprobs : Array(CreateTranscriptionResponseJsonLogprobsItem) | Nil = nil, usage : CreateTranscriptionResponseJsonUsage | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

logprobs

The log probabilities of the tokens in the transcription. Only returned with the models gpt-4o-transcribe and gpt-4o-mini-transcribe if logprobs is added to the include array.

Source
logprobs=(logprobs : Array(CreateTranscriptionResponseJsonLogprobsItem) | Nil)

The log probabilities of the tokens in the transcription. Only returned with the models gpt-4o-transcribe and gpt-4o-mini-transcribe if logprobs is added to the include array.

Source
text

The transcribed text.

Source
text=(text : String)

The transcribed text.

Source
usage

Token usage statistics for the request.

Source
usage=(usage : CreateTranscriptionResponseJsonUsage | Nil)

Token usage statistics for the request.

Source