TranscriptionModelResult
Namespace: Vercel.AI.Operations
public sealed class TranscriptionModelResultTranscription model response.
Inheritance: object
Constructors
Section titled “Constructors”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 |
Properties
Section titled “Properties”DurationInSeconds
Section titled “DurationInSeconds”public double? DurationInSeconds { get; }Duration in seconds.
Value: double?
Language
Section titled “Language”public string? Language { get; }Language.
Value: string
ProviderMetadata
Section titled “ProviderMetadata”public JsonElement? ProviderMetadata { get; }Provider metadata.
Value: JsonElement?
Response
Section titled “Response”public ProviderResponse Response { get; }Response metadata.
Value: ProviderResponse
Segments
Section titled “Segments”public IReadOnlyList<TranscriptSegment> Segments { get; }Segments.
Value: IReadOnlyList<TranscriptSegment>
public string? Text { get; }Transcript text, or <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> when the model returned none. An empty string is a valid transcript.
Value: string
Warnings
Section titled “Warnings”public IReadOnlyList<OperationWarning> Warnings { get; }Warnings.
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product