Skip to content

NoSpeechGeneratedException

Namespace: Vercel.AI.Operations

public sealed class NoSpeechGeneratedException : AiSdkException, ISerializable

No speech audio was produced.

Inheritance: object → Exception → AiSdkException

Implements: ISerializable

View source

NoSpeechGeneratedException(IReadOnlyList<ProviderResponse>)

Section titled “NoSpeechGeneratedException(IReadOnlyList<ProviderResponse>)”
public NoSpeechGeneratedException(IReadOnlyList<ProviderResponse> responses)

Creates the exception.

Parameters

Name Type Description
responses IReadOnlyList<ProviderResponse>

View source

NoSpeechGeneratedException(IReadOnlyList<ProviderResponse>, Exception?)

Section titled “NoSpeechGeneratedException(IReadOnlyList<ProviderResponse>, Exception?)”
public NoSpeechGeneratedException(IReadOnlyList<ProviderResponse> responses, Exception? cause)

Creates the exception with the provider error that caused it.

Parameters

Name Type Description
responses IReadOnlyList<ProviderResponse>
cause Exception

View source

public IReadOnlyList<ProviderResponse> Responses { get; }

Provider responses included with the failure.

Value: IReadOnlyList<ProviderResponse>

View source

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