ai
Version:
AI SDK by Vercel - build apps like ChatGPT, Claude, Gemini, and more with a single interface for any model using the Vercel AI Gateway or go direct to OpenAI, Anthropic, Google, or any other model provider.
25 lines (16 loc) • 536 B
text/mdx
title: AI_NoSpeechGeneratedError
description: Learn how to fix AI_NoSpeechGeneratedError
# AI_NoSpeechGeneratedError
This error occurs when no audio could be generated from the input.
## Properties
- `responses`: Array of speech model response metadata (required in constructor)
## Checking for this Error
You can check if an error is an instance of `AI_NoSpeechGeneratedError` using:
```typescript
import { NoSpeechGeneratedError } from 'ai';
if (NoSpeechGeneratedError.isInstance(error)) {
// Handle the error
}
```