Skip to main content

AI_NoSpeechGeneratedError

还没翻译译自英文(ai-sdk.dev)本页 6 段都还没译

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:

import { NoSpeechGeneratedError } from 'ai';

if (NoSpeechGeneratedError.isInstance(error)) {
  // Handle the error
}