class

OpenAI::TranscriptTextDeltaEvent

Inherits JSON::Serializable < Reference < Object

Emitted when there is an additional text delta. This is also the first event emitted when the transcription starts. Only emitted when you create a transcription with the Stream parameter set to true.

Constructors

new(type_value : TranscriptTextDeltaEventType = TranscriptTextDeltaEventType::TranscriptTextDelta, delta : String = "", logprobs : Array(TranscriptTextDeltaEventLogprobsItem) | Nil = nil, segment_id : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

delta

The text delta that was additionally transcribed.

Source
delta=(delta : String)

The text delta that was additionally transcribed.

Source
logprobs

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

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

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

Source
segment_id

Identifier of the diarized segment that this delta belongs to. Only present when using gpt-4o-transcribe-diarize.

Source
segment_id=(segment_id : String | Nil)

Identifier of the diarized segment that this delta belongs to. Only present when using gpt-4o-transcribe-diarize.

Source
type_value

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

Source
type_value=(type_value : TranscriptTextDeltaEventType)

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

Source