OpenAI::TranscriptionSegment
Inherits JSON::Serializable < Reference < Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(id : Int64 = 0, seek : Int64 = 0, start : Float32 = 0.0, end_value : Float32 = 0.0, text : String = "", tokens : Array(Int64) = [] of Int64, temperature : Float32 = 0.0, avg_logprob : Float32 = 0.0, compression_ratio : Float32 = 0.0, no_speech_prob : Float32 = 0.0)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
avg_logprob
Average logprob of the segment. If the value is lower than -1, consider the logprobs failed.
avg_logprob=(avg_logprob : Float32)
Average logprob of the segment. If the value is lower than -1, consider the logprobs failed.
compression_ratio
Compression ratio of the segment. If the value is greater than 2.4, consider the compression failed.
compression_ratio=(compression_ratio : Float32)
Compression ratio of the segment. If the value is greater than 2.4, consider the compression failed.
no_speech_prob
Probability of no speech in the segment. If the value is higher than 1.0 and the avg_logprob is below -1, consider this segment silent.