Skip to content

GenerateSpeechResult

Namespace: Vercel.AI.Operations

public sealed class GenerateSpeechResult

Result of CancellationToken).

Inheritance: object

View source

GenerateSpeechResult(GeneratedAudio, IReadOnlyList<OperationWarning>, IReadOnlyList<ProviderResponse>, JsonElement)

Section titled “GenerateSpeechResult(GeneratedAudio, IReadOnlyList<OperationWarning>, IReadOnlyList<ProviderResponse>, JsonElement)”
public GenerateSpeechResult(GeneratedAudio audio, IReadOnlyList<OperationWarning> warnings, IReadOnlyList<ProviderResponse> responses, JsonElement providerMetadata)

Creates a speech result.

Parameters

Name Type Description
audio GeneratedAudio
warnings IReadOnlyList<OperationWarning>
responses IReadOnlyList<ProviderResponse>
providerMetadata JsonElement

View source

public GeneratedAudio Audio { get; }

Generated audio.

Value: GeneratedAudio

View source

public JsonElement ProviderMetadata { get; }

Provider metadata. Empty object when omitted.

Value: JsonElement

View source

public IReadOnlyList<ProviderResponse> Responses { get; }

Provider responses.

Value: IReadOnlyList<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