SpeechModelResult
Namespace: Vercel.AI.Operations
public sealed class SpeechModelResultSpeech model response.
Inheritance: object
Constructors
Section titled “Constructors”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 |
Properties
Section titled “Properties”public byte[] Audio { get; }Audio bytes. Empty when the provider returned none.
Value: byte[]
ProviderMetadata
Section titled “ProviderMetadata”public JsonElement? ProviderMetadata { get; }Provider metadata.
Value: JsonElement?
Response
Section titled “Response”public ProviderResponse Response { get; }Response metadata.
Value: ProviderResponse
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