OpenAITranscriptionResult
Namespace: Vercel.AI.OpenAI
public sealed class OpenAITranscriptionResultTranscript with timed segments and response metadata.
Inheritance: object
Properties
Section titled “Properties”DurationInSeconds
Section titled “DurationInSeconds”public double? DurationInSeconds { get; }Audio duration in seconds.
Value: double?
Language
Section titled “Language”public string? Language { get; }ISO-639-1 code, when OpenAI reports a two-letter code, a known language name, or a single detected language.
Value: string
ProviderMetadata
Section titled “ProviderMetadata”public JsonElement? ProviderMetadata { get; }Speaker segments under openai.segments for diarized responses and detected languages under openai.languages.
Value: JsonElement?
Response
Section titled “Response”public OpenAITranscriptionResponse Response { get; }Response metadata.
Value: OpenAITranscriptionResponse
Segments
Section titled “Segments”public IReadOnlyList<TranscriptSegment> Segments { get; }Segments, or words when the response has no segments.
Value: IReadOnlyList<TranscriptSegment>
public string Text { get; }Transcript text.
Value: string
Warnings
Section titled “Warnings”public IReadOnlyList<OpenAICallWarning> Warnings { get; }Warnings produced while preparing the request. OpenAI transcription reports none today.
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product