TtsErrorMessage: {
    error: string;
    error_code: number;
    error_type: string;
    param: string | null;
    retry_after_seconds: number | null;
    retryable: boolean;
    type: "Error";
}

The frame that precedes a failure close.

Type declaration

  • error: string
  • error_code: number

    The WebSocket close code that follows.

  • error_type: string

    The stable cause, such as voice_not_found or rate_limited.

  • param: string | null
  • retry_after_seconds: number | null
  • retryable: boolean
  • type: "Error"