class

OpenAI::TranscriptTextDoneEvent

Inherits JSON::Serializable < Reference < Object

Emitted when the transcription is complete. Contains the complete transcription text. Only emitted when you create a transcription with the Stream parameter set to true.

Constructors

new(type_value : TranscriptTextDoneEventType = TranscriptTextDoneEventType::TranscriptTextDone, text : String = "", logprobs : Array(TranscriptTextDoneEventLogprobsItem) | Nil = nil, usage : TranscriptTextUsageTokens | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

logprobs

The log probabilities of the individual tokens in the transcription. Only included if you create a transcription with the include[] parameter set to logprobs.

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

The log probabilities of the individual tokens in the transcription. Only included if you create a transcription with the include[] parameter set to logprobs.

Source
text

The text that was transcribed.

Source
text=(text : String)

The text that was transcribed.

Source
type_value

The type of the event. Always transcript.text.done.

Source
type_value=(type_value : TranscriptTextDoneEventType)

The type of the event. Always transcript.text.done.

Source
usage
Source
usage=(usage : TranscriptTextUsageTokens | Nil)
Source