UNPKG

microsoft-cognitiveservices-speech-sdk

Version:
52 lines (50 loc) 2.08 kB
"use strict"; // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. Object.defineProperty(exports, "__esModule", { value: true }); exports.CancellationErrorCode = void 0; /** * Defines error code in case that CancellationReason is Error. * Added in version 1.1.0. */ var CancellationErrorCode; (function (CancellationErrorCode) { /** * Indicates that no error occurred during speech recognition. */ CancellationErrorCode[CancellationErrorCode["NoError"] = 0] = "NoError"; /** * Indicates an authentication error. */ CancellationErrorCode[CancellationErrorCode["AuthenticationFailure"] = 1] = "AuthenticationFailure"; /** * Indicates that one or more recognition parameters are invalid. */ CancellationErrorCode[CancellationErrorCode["BadRequestParameters"] = 2] = "BadRequestParameters"; /** * Indicates that the number of parallel requests exceeded the number of allowed * concurrent transcriptions for the subscription. */ CancellationErrorCode[CancellationErrorCode["TooManyRequests"] = 3] = "TooManyRequests"; /** * Indicates a connection error. */ CancellationErrorCode[CancellationErrorCode["ConnectionFailure"] = 4] = "ConnectionFailure"; /** * Indicates a time-out error when waiting for response from service. */ CancellationErrorCode[CancellationErrorCode["ServiceTimeout"] = 5] = "ServiceTimeout"; /** * Indicates that an error is returned by the service. */ CancellationErrorCode[CancellationErrorCode["ServiceError"] = 6] = "ServiceError"; /** * Indicates an unexpected runtime error. */ CancellationErrorCode[CancellationErrorCode["RuntimeError"] = 7] = "RuntimeError"; /** * Indicates an quota overrun on existing key. */ CancellationErrorCode[CancellationErrorCode["Forbidden"] = 8] = "Forbidden"; })(CancellationErrorCode = exports.CancellationErrorCode || (exports.CancellationErrorCode = {})); //# sourceMappingURL=CancellationErrorCodes.js.map