Instance Propertymacpaw.openai 0.3.8OpenAI
compressionRatio
Compression ratio of the segment. If the value is greater than 2.4, consider the compression failed.
let compressionRatio: Float
Compression ratio of the segment. If the value is greater than 2.4, consider the compression failed.
let compressionRatio: Float
s6OpenAI24AudioTranscriptionResultV7SegmentV16compressionRatioSfvp
What are these?41K96
import OpenAI
struct Segment
struct AudioTranscriptionResult
@frozen struct Float
A single-precision, floating-point value type.
init(from decoder: any Decoder) throws
let avgLogprob: Float
Average logprob of the segment. If the value is lower than -1, consider the logprobs failed.
let end: Float
End time of the segment in seconds.
let id: Int
Unique identifier of the segment.
let noSpeechProb: Float
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.
let seek: Int
Seek offset of the segment.
let start: Float
Start time of the segment in seconds.
let temperature: Float
Temperature parameter used for generating the segment.
let text: String
Text content of the segment.
let tokens: [Int]
Array of token IDs for the text content.