Skip to content

SpeechModelResult

Namespace: Vercel.AI.Operations

public sealed class SpeechModelResult

Speech model response.

Inheritance: object

View source

SpeechModelResult(byte[]?, IReadOnlyList<OperationWarning>?, JsonElement?, ProviderResponse?)

Section titled “SpeechModelResult(byte[]?, IReadOnlyList<OperationWarning>?, JsonElement?, ProviderResponse?)”
public SpeechModelResult(byte[]? audio, IReadOnlyList<OperationWarning>? warnings = null, JsonElement? providerMetadata = null, ProviderResponse? response = null)

Creates a speech result.

Parameters

Name Type Description
audio byte[]
warnings IReadOnlyList<OperationWarning>
providerMetadata JsonElement?
response ProviderResponse

View source

public byte[] Audio { get; }

Audio bytes. Empty when the provider returned none.

Value: byte[]

View source

public JsonElement? ProviderMetadata { get; }

Provider metadata.

Value: JsonElement?

View source

public ProviderResponse Response { get; }

Response metadata.

Value: ProviderResponse

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