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.SynthesisResult = void 0;\n/**\n * Base class for synthesis results\n * @class SynthesisResult\n * Added in version 1.20.0\n */\nclass SynthesisResult {\n /**\n * Creates and initializes an instance of this class.\n * @constructor\n * @param {string} resultId - The result id.\n * @param {ResultReason} reason - The reason.\n * @param {string} errorDetails - Error details, if provided.\n * @param {PropertyCollection} properties - Additional properties, if provided.\n */\n constructor(resultId, reason, errorDetails, properties) {\n this.privResultId = resultId;\n this.privReason = reason;\n this.privErrorDetails = errorDetails;\n this.privProperties = properties;\n }\n /**\n * Specifies the result identifier.\n * @member SynthesisResult.prototype.resultId\n * @function\n * @public\n * @returns {string} Specifies the result identifier.\n */\n get resultId() {\n return this.privResultId;\n }\n /**\n * Specifies status of the result.\n * @member SynthesisResult.prototype.reason\n * @function\n * @public\n * @returns {ResultReason} Specifies status of the result.\n */\n get reason() {\n return this.privReason;\n }\n /**\n * In case of an unsuccessful synthesis, provides details of the occurred error.\n * @member SynthesisResult.prototype.errorDetails\n * @function\n * @public\n * @returns {string} a brief description of an error.\n */\n get errorDetails() {\n return this.privErrorDetails;\n }\n /**\n * The set of properties exposed in the result.\n * @member SynthesisResult.prototype.properties\n * @function\n * @public\n * @returns {PropertyCollection} The set of properties exposed in the result.\n */\n get properties() {\n return this.privProperties;\n }\n}\nexports.SynthesisResult = SynthesisResult;","map":{"version":3,"names":["Object","defineProperty","exports","value","SynthesisResult","constructor","resultId","reason","errorDetails","properties","privResultId","privReason","privErrorDetails","privProperties"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SynthesisResult.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.SynthesisResult = void 0;\n/**\n * Base class for synthesis results\n * @class SynthesisResult\n * Added in version 1.20.0\n */\nclass SynthesisResult {\n /**\n * Creates and initializes an instance of this class.\n * @constructor\n * @param {string} resultId - The result id.\n * @param {ResultReason} reason - The reason.\n * @param {string} errorDetails - Error details, if provided.\n * @param {PropertyCollection} properties - Additional properties, if provided.\n */\n constructor(resultId, reason, errorDetails, properties) {\n this.privResultId = resultId;\n this.privReason = reason;\n this.privErrorDetails = errorDetails;\n this.privProperties = properties;\n }\n /**\n * Specifies the result identifier.\n * @member SynthesisResult.prototype.resultId\n * @function\n * @public\n * @returns {string} Specifies the result identifier.\n */\n get resultId() {\n return this.privResultId;\n }\n /**\n * Specifies status of the result.\n * @member SynthesisResult.prototype.reason\n * @function\n * @public\n * @returns {ResultReason} Specifies status of the result.\n */\n get reason() {\n return this.privReason;\n }\n /**\n * In case of an unsuccessful synthesis, provides details of the occurred error.\n * @member SynthesisResult.prototype.errorDetails\n * @function\n * @public\n * @returns {string} a brief description of an error.\n */\n get errorDetails() {\n return this.privErrorDetails;\n }\n /**\n * The set of properties exposed in the result.\n * @member SynthesisResult.prototype.properties\n * @function\n * @public\n * @returns {PropertyCollection} The set of properties exposed in the result.\n */\n get properties() {\n return this.privProperties;\n }\n}\nexports.SynthesisResult = SynthesisResult;\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,eAAe,GAAG,KAAK,CAAC;AAChC;AACA;AACA;AACA;AACA;AACA,MAAMA,eAAe,CAAC;EAClB;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;EACIC,WAAWA,CAACC,QAAQ,EAAEC,MAAM,EAAEC,YAAY,EAAEC,UAAU,EAAE;IACpD,IAAI,CAACC,YAAY,GAAGJ,QAAQ;IAC5B,IAAI,CAACK,UAAU,GAAGJ,MAAM;IACxB,IAAI,CAACK,gBAAgB,GAAGJ,YAAY;IACpC,IAAI,CAACK,cAAc,GAAGJ,UAAU;EACpC;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIH,QAAQA,CAAA,EAAG;IACX,OAAO,IAAI,CAACI,YAAY;EAC5B;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIH,MAAMA,CAAA,EAAG;IACT,OAAO,IAAI,CAACI,UAAU;EAC1B;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIH,YAAYA,CAAA,EAAG;IACf,OAAO,IAAI,CAACI,gBAAgB;EAChC;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIH,UAAUA,CAAA,EAAG;IACb,OAAO,IAAI,CAACI,cAAc;EAC9B;AACJ;AACAX,OAAO,CAACE,eAAe,GAAGA,eAAe","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}
|