UNPKG

assemblyai

Version:

The AssemblyAI JavaScript SDK provides an easy-to-use interface for interacting with the AssemblyAI API, which supports async and real-time transcription, as well as the latest LeMUR models.

21 lines (20 loc) 914 B
/** * Error thrown when a synchronous transcription request fails. */ export declare class SyncTranscriptError extends Error { readonly status?: number | undefined; readonly errorCode?: string | undefined; readonly retryAfter?: number | undefined; name: string; /** * Create a new SyncTranscriptError. * @param message - The human-readable error message. * @param status - The HTTP status code of the failed request. * @param errorCode - Machine-readable code — the snake_cased * problem-details `title` from the server (e.g. `bad_audio`, * `audio_too_large`, `capacity_exceeded`, `inference_timeout`). * @param retryAfter - Seconds to wait before retrying, from the * `Retry-After` header on 429/503 responses. */ constructor(message: string, status?: number | undefined, errorCode?: string | undefined, retryAfter?: number | undefined); }