Instance Propertymacpaw.openai 0.3.2OpenAI
language
The detected language
let language: String?
The detected language
let language: String?
import OpenAI
struct AudioTranscriptionResult
@frozen struct String
A Unicode string value that is a collection of characters.
init(from decoder: any Decoder) throws
init(task: String? = nil, language: String? = nil, duration: Double? = nil, text: String, segments: [Segment]? = nil)
let duration: Double?
The duration of the audio in seconds
let segments: [Segment]?
The segments containing detailed information (only present in verbose_json format)
let task: String?
The task type (always “transcribe” for transcriptions)
let text: String
The transcribed text
struct Segment