struct AI::OpenAI::OpenAITranscriptionSegment

Overview

Segment-level information from the transcription response.

Included Modules

Defined in:

ai/openai/transcription/openai_transcription_api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.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) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def avg_logprob : Float64 #

Average log probability.


[View source]
def compression_ratio : Float64 #

Compression ratio.


[View source]
def end_time : Float64 #

End time in seconds.


[View source]
def id : Int32 #

Unique identifier for the segment.


[View source]
def no_speech_prob : Float64 #

Probability of no speech.


[View source]
def seek : Int32 #

Seek offset of the segment.


[View source]
def start : Float64 #

Start time in seconds.


[View source]
def temperature : Float64 #

Temperature used for generation.


[View source]
def text : String #

Transcribed text for the segment.


[View source]
def tokens : Array(Int32) #

Array of token IDs.


[View source]