Skip to content

TranscriptionModelResult

Namespace: Vercel.AI.Operations

public sealed class TranscriptionModelResult

Transcription model response.

Inheritance: object

View source

TranscriptionModelResult(string?, IReadOnlyList<TranscriptSegment>?, string?, double?, IReadOnlyList<OperationWarning>?, JsonElement?, ProviderResponse?)

Section titled “TranscriptionModelResult(string?, IReadOnlyList<TranscriptSegment>?, string?, double?, IReadOnlyList<OperationWarning>?, JsonElement?, ProviderResponse?)”
public TranscriptionModelResult(string? text, IReadOnlyList<TranscriptSegment>? segments = null, string? language = null, double? durationInSeconds = null, IReadOnlyList<OperationWarning>? warnings = null, JsonElement? providerMetadata = null, ProviderResponse? response = null)

Creates a result.

Parameters

Name Type Description
text string
segments IReadOnlyList<TranscriptSegment>
language string
durationInSeconds double?
warnings IReadOnlyList<OperationWarning>
providerMetadata JsonElement?
response ProviderResponse

View source

public double? DurationInSeconds { get; }

Duration in seconds.

Value: double?

View source

public string? Language { get; }

Language.

Value: string

View source

public JsonElement? ProviderMetadata { get; }

Provider metadata.

Value: JsonElement?

View source

public ProviderResponse Response { get; }

Response metadata.

Value: ProviderResponse

View source

public IReadOnlyList<TranscriptSegment> Segments { get; }

Segments.

Value: IReadOnlyList<TranscriptSegment>

View source

public string? Text { get; }

Transcript text, or <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null"&gt;null&lt;/a> when the model returned none. An empty string is a valid transcript.

Value: string

View source

public IReadOnlyList<OperationWarning> Warnings { get; }

Warnings.

Value: IReadOnlyList<OperationWarning>

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product