cce01fbb2b64d77cde1822fb47a10ff70cf3e9158766c53051c992827258f058.json 6.7 KB

1
  1. {"ast":null,"code":"\"use strict\";\n\n// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.TranslationRecognitionCanceledEventArgs = void 0;\n/**\n * Define payload of speech recognition canceled result events.\n * @class TranslationRecognitionCanceledEventArgs\n */\nclass TranslationRecognitionCanceledEventArgs {\n /**\n * Creates and initializes an instance of this class.\n * @constructor\n * @param {string} sessionid - The session id.\n * @param {CancellationReason} cancellationReason - The cancellation reason.\n * @param {string} errorDetails - Error details, if provided.\n * @param {TranslationRecognitionResult} result - The result.\n */\n constructor(sessionid, cancellationReason, errorDetails, errorCode, result) {\n this.privCancelReason = cancellationReason;\n this.privErrorDetails = errorDetails;\n this.privResult = result;\n this.privSessionId = sessionid;\n this.privErrorCode = errorCode;\n }\n /**\n * Specifies the recognition result.\n * @member TranslationRecognitionCanceledEventArgs.prototype.result\n * @function\n * @public\n * @returns {TranslationRecognitionResult} the recognition result.\n */\n get result() {\n return this.privResult;\n }\n /**\n * Specifies the session identifier.\n * @member TranslationRecognitionCanceledEventArgs.prototype.sessionId\n * @function\n * @public\n * @returns {string} the session identifier.\n */\n get sessionId() {\n return this.privSessionId;\n }\n /**\n * The reason the recognition was canceled.\n * @member TranslationRecognitionCanceledEventArgs.prototype.reason\n * @function\n * @public\n * @returns {CancellationReason} Specifies the reason canceled.\n */\n get reason() {\n return this.privCancelReason;\n }\n /**\n * The error code in case of an unsuccessful recognition.\n * Added in version 1.1.0.\n * @return An error code that represents the error reason.\n */\n get errorCode() {\n return this.privErrorCode;\n }\n /**\n * In case of an unsuccessful recognition, provides details of the occurred error.\n * @member TranslationRecognitionCanceledEventArgs.prototype.errorDetails\n * @function\n * @public\n * @returns {string} A String that represents the error details.\n */\n get errorDetails() {\n return this.privErrorDetails;\n }\n}\nexports.TranslationRecognitionCanceledEventArgs = TranslationRecognitionCanceledEventArgs;","map":{"version":3,"names":["Object","defineProperty","exports","value","TranslationRecognitionCanceledEventArgs","constructor","sessionid","cancellationReason","errorDetails","errorCode","result","privCancelReason","privErrorDetails","privResult","privSessionId","privErrorCode","sessionId","reason"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TranslationRecognitionCanceledEventArgs.js"],"sourcesContent":["\"use strict\";\n// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TranslationRecognitionCanceledEventArgs = void 0;\n/**\n * Define payload of speech recognition canceled result events.\n * @class TranslationRecognitionCanceledEventArgs\n */\nclass TranslationRecognitionCanceledEventArgs {\n /**\n * Creates and initializes an instance of this class.\n * @constructor\n * @param {string} sessionid - The session id.\n * @param {CancellationReason} cancellationReason - The cancellation reason.\n * @param {string} errorDetails - Error details, if provided.\n * @param {TranslationRecognitionResult} result - The result.\n */\n constructor(sessionid, cancellationReason, errorDetails, errorCode, result) {\n this.privCancelReason = cancellationReason;\n this.privErrorDetails = errorDetails;\n this.privResult = result;\n this.privSessionId = sessionid;\n this.privErrorCode = errorCode;\n }\n /**\n * Specifies the recognition result.\n * @member TranslationRecognitionCanceledEventArgs.prototype.result\n * @function\n * @public\n * @returns {TranslationRecognitionResult} the recognition result.\n */\n get result() {\n return this.privResult;\n }\n /**\n * Specifies the session identifier.\n * @member TranslationRecognitionCanceledEventArgs.prototype.sessionId\n * @function\n * @public\n * @returns {string} the session identifier.\n */\n get sessionId() {\n return this.privSessionId;\n }\n /**\n * The reason the recognition was canceled.\n * @member TranslationRecognitionCanceledEventArgs.prototype.reason\n * @function\n * @public\n * @returns {CancellationReason} Specifies the reason canceled.\n */\n get reason() {\n return this.privCancelReason;\n }\n /**\n * The error code in case of an unsuccessful recognition.\n * Added in version 1.1.0.\n * @return An error code that represents the error reason.\n */\n get errorCode() {\n return this.privErrorCode;\n }\n /**\n * In case of an unsuccessful recognition, provides details of the occurred error.\n * @member TranslationRecognitionCanceledEventArgs.prototype.errorDetails\n * @function\n * @public\n * @returns {string} A String that represents the error details.\n */\n get errorDetails() {\n return this.privErrorDetails;\n }\n}\nexports.TranslationRecognitionCanceledEventArgs = TranslationRecognitionCanceledEventArgs;\n\n"],"mappings":"AAAA,YAAY;;AACZ;AACA;AACAA,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,YAAY,EAAE;EAAEC,KAAK,EAAE;AAAK,CAAC,CAAC;AAC7DD,OAAO,CAACE,uCAAuC,GAAG,KAAK,CAAC;AACxD;AACA;AACA;AACA;AACA,MAAMA,uCAAuC,CAAC;EAC1C;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;EACIC,WAAWA,CAACC,SAAS,EAAEC,kBAAkB,EAAEC,YAAY,EAAEC,SAAS,EAAEC,MAAM,EAAE;IACxE,IAAI,CAACC,gBAAgB,GAAGJ,kBAAkB;IAC1C,IAAI,CAACK,gBAAgB,GAAGJ,YAAY;IACpC,IAAI,CAACK,UAAU,GAAGH,MAAM;IACxB,IAAI,CAACI,aAAa,GAAGR,SAAS;IAC9B,IAAI,CAACS,aAAa,GAAGN,SAAS;EAClC;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIC,MAAMA,CAAA,EAAG;IACT,OAAO,IAAI,CAACG,UAAU;EAC1B;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIG,SAASA,CAAA,EAAG;IACZ,OAAO,IAAI,CAACF,aAAa;EAC7B;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIG,MAAMA,CAAA,EAAG;IACT,OAAO,IAAI,CAACN,gBAAgB;EAChC;EACA;AACJ;AACA;AACA;AACA;EACI,IAAIF,SAASA,CAAA,EAAG;IACZ,OAAO,IAAI,CAACM,aAAa;EAC7B;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIP,YAAYA,CAAA,EAAG;IACf,OAAO,IAAI,CAACI,gBAAgB;EAChC;AACJ;AACAV,OAAO,CAACE,uCAAuC,GAAGA,uCAAuC","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}