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.
29 lines (28 loc) • 1.13 kB
TypeScript
declare const StreamingErrorType: {
readonly BadSampleRate: 4000;
readonly AuthFailed: 4001;
readonly InsufficientFunds: 4002;
readonly FreeTierUser: 4003;
readonly NonexistentSessionId: 4004;
readonly SessionExpired: 4008;
readonly ClosedSession: 4010;
readonly RateLimited: 4029;
readonly UniqueSessionViolation: 4030;
readonly SessionTimeout: 4031;
readonly AudioTooShort: 4032;
readonly AudioTooLong: 4033;
readonly AudioTooSmallToTranscode: 4034;
readonly BadSchema: 4101;
readonly TooManyStreams: 4102;
readonly Reconnected: 4103;
readonly ServerError: 3005;
readonly InputValidationError: 3006;
readonly AudioChunkDurationViolation: 3007;
readonly MaxSessionDurationExceeded: 3008;
readonly ConcurrencyLimitExceeded: 3009;
};
type StreamingErrorTypeCodes = (typeof StreamingErrorType)[keyof typeof StreamingErrorType];
declare const StreamingErrorMessages: Record<StreamingErrorTypeCodes, string>;
declare class StreamingError extends Error {
}
export { StreamingError, StreamingErrorType, StreamingErrorTypeCodes, StreamingErrorMessages, };