struct

AI::OpenAI::OpenAITranscriptionSegment

Inherits JSON::Serializable < Struct < Value < Object

Segment-level information from the transcription response.

Constructors

new(id : Int32, seek : Int32, start : Float64, end_time : Float64, text : String, tokens : Array(Int32), temperature : Float64, avg_logprob : Float64, compression_ratio : Float64, no_speech_prob : Float64)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

avg_logprob

Average log probability.

Source
compression_ratio

Compression ratio.

Source
end_time

End time in seconds.

Source
id

Unique identifier for the segment.

Source
no_speech_prob

Probability of no speech.

Source
seek

Seek offset of the segment.

Source
start

Start time in seconds.

Source
temperature

Temperature used for generation.

Source
text

Transcribed text for the segment.

Source
tokens

Array of token IDs.

Source