8b9602666c69b14b39eea80ae3226e94bac592937c046df48969dd52d259eb17.json 11 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.RecognitionResult = void 0;\n/**\n * Defines result of speech recognition.\n * @class RecognitionResult\n */\nclass RecognitionResult {\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} text - The recognized text.\n * @param {number} duration - The duration.\n * @param {number} offset - The offset into the stream.\n * @param {string} language - Primary Language detected, if provided.\n * @param {string} languageDetectionConfidence - Primary Language confidence (\"Unknown,\" \"Low,\" \"Medium,\" \"High\"...), if provided.\n * @param {string} errorDetails - Error details, if provided.\n * @param {string} json - Additional Json, if provided.\n * @param {PropertyCollection} properties - Additional properties, if provided.\n */\n constructor(resultId, reason, text, duration, offset, language, languageDetectionConfidence, errorDetails, json, properties) {\n this.privResultId = resultId;\n this.privReason = reason;\n this.privText = text;\n this.privDuration = duration;\n this.privOffset = offset;\n this.privLanguage = language;\n this.privLanguageDetectionConfidence = languageDetectionConfidence;\n this.privErrorDetails = errorDetails;\n this.privJson = json;\n this.privProperties = properties;\n }\n /**\n * Specifies the result identifier.\n * @member RecognitionResult.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 RecognitionResult.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 * Presents the recognized text in the result.\n * @member RecognitionResult.prototype.text\n * @function\n * @public\n * @returns {string} Presents the recognized text in the result.\n */\n get text() {\n return this.privText;\n }\n /**\n * Duration of recognized speech in 100 nano second increments.\n * @member RecognitionResult.prototype.duration\n * @function\n * @public\n * @returns {number} Duration of recognized speech in 100 nano second increments.\n */\n get duration() {\n return this.privDuration;\n }\n /**\n * Offset of recognized speech in 100 nano second increments.\n * @member RecognitionResult.prototype.offset\n * @function\n * @public\n * @returns {number} Offset of recognized speech in 100 nano second increments.\n */\n get offset() {\n return this.privOffset;\n }\n /**\n * Primary Language detected.\n * @member RecognitionResult.prototype.language\n * @function\n * @public\n * @returns {string} language detected.\n */\n get language() {\n return this.privLanguage;\n }\n /**\n * Primary Language detection confidence (Unknown, Low, Medium, High).\n * @member RecognitionResult.prototype.languageDetectionConfidence\n * @function\n * @public\n * @returns {string} detection confidence strength.\n */\n get languageDetectionConfidence() {\n return this.privLanguageDetectionConfidence;\n }\n /**\n * In case of an unsuccessful recognition, provides details of the occurred error.\n * @member RecognitionResult.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 * A string containing Json serialized recognition result as it was received from the service.\n * @member RecognitionResult.prototype.json\n * @function\n * @private\n * @returns {string} Json serialized representation of the result.\n */\n get json() {\n return this.privJson;\n }\n /**\n * The set of properties exposed in the result.\n * @member RecognitionResult.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.RecognitionResult = RecognitionResult;","map":{"version":3,"names":["Object","defineProperty","exports","value","RecognitionResult","constructor","resultId","reason","text","duration","offset","language","languageDetectionConfidence","errorDetails","json","properties","privResultId","privReason","privText","privDuration","privOffset","privLanguage","privLanguageDetectionConfidence","privErrorDetails","privJson","privProperties"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/RecognitionResult.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.RecognitionResult = void 0;\n/**\n * Defines result of speech recognition.\n * @class RecognitionResult\n */\nclass RecognitionResult {\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} text - The recognized text.\n * @param {number} duration - The duration.\n * @param {number} offset - The offset into the stream.\n * @param {string} language - Primary Language detected, if provided.\n * @param {string} languageDetectionConfidence - Primary Language confidence (\"Unknown,\" \"Low,\" \"Medium,\" \"High\"...), if provided.\n * @param {string} errorDetails - Error details, if provided.\n * @param {string} json - Additional Json, if provided.\n * @param {PropertyCollection} properties - Additional properties, if provided.\n */\n constructor(resultId, reason, text, duration, offset, language, languageDetectionConfidence, errorDetails, json, properties) {\n this.privResultId = resultId;\n this.privReason = reason;\n this.privText = text;\n this.privDuration = duration;\n this.privOffset = offset;\n this.privLanguage = language;\n this.privLanguageDetectionConfidence = languageDetectionConfidence;\n this.privErrorDetails = errorDetails;\n this.privJson = json;\n this.privProperties = properties;\n }\n /**\n * Specifies the result identifier.\n * @member RecognitionResult.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 RecognitionResult.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 * Presents the recognized text in the result.\n * @member RecognitionResult.prototype.text\n * @function\n * @public\n * @returns {string} Presents the recognized text in the result.\n */\n get text() {\n return this.privText;\n }\n /**\n * Duration of recognized speech in 100 nano second increments.\n * @member RecognitionResult.prototype.duration\n * @function\n * @public\n * @returns {number} Duration of recognized speech in 100 nano second increments.\n */\n get duration() {\n return this.privDuration;\n }\n /**\n * Offset of recognized speech in 100 nano second increments.\n * @member RecognitionResult.prototype.offset\n * @function\n * @public\n * @returns {number} Offset of recognized speech in 100 nano second increments.\n */\n get offset() {\n return this.privOffset;\n }\n /**\n * Primary Language detected.\n * @member RecognitionResult.prototype.language\n * @function\n * @public\n * @returns {string} language detected.\n */\n get language() {\n return this.privLanguage;\n }\n /**\n * Primary Language detection confidence (Unknown, Low, Medium, High).\n * @member RecognitionResult.prototype.languageDetectionConfidence\n * @function\n * @public\n * @returns {string} detection confidence strength.\n */\n get languageDetectionConfidence() {\n return this.privLanguageDetectionConfidence;\n }\n /**\n * In case of an unsuccessful recognition, provides details of the occurred error.\n * @member RecognitionResult.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 * A string containing Json serialized recognition result as it was received from the service.\n * @member RecognitionResult.prototype.json\n * @function\n * @private\n * @returns {string} Json serialized representation of the result.\n */\n get json() {\n return this.privJson;\n }\n /**\n * The set of properties exposed in the result.\n * @member RecognitionResult.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.RecognitionResult = RecognitionResult;\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,iBAAiB,GAAG,KAAK,CAAC;AAClC;AACA;AACA;AACA;AACA,MAAMA,iBAAiB,CAAC;EACpB;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACIC,WAAWA,CAACC,QAAQ,EAAEC,MAAM,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,2BAA2B,EAAEC,YAAY,EAAEC,IAAI,EAAEC,UAAU,EAAE;IACzH,IAAI,CAACC,YAAY,GAAGV,QAAQ;IAC5B,IAAI,CAACW,UAAU,GAAGV,MAAM;IACxB,IAAI,CAACW,QAAQ,GAAGV,IAAI;IACpB,IAAI,CAACW,YAAY,GAAGV,QAAQ;IAC5B,IAAI,CAACW,UAAU,GAAGV,MAAM;IACxB,IAAI,CAACW,YAAY,GAAGV,QAAQ;IAC5B,IAAI,CAACW,+BAA+B,GAAGV,2BAA2B;IAClE,IAAI,CAACW,gBAAgB,GAAGV,YAAY;IACpC,IAAI,CAACW,QAAQ,GAAGV,IAAI;IACpB,IAAI,CAACW,cAAc,GAAGV,UAAU;EACpC;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIT,QAAQA,CAAA,EAAG;IACX,OAAO,IAAI,CAACU,YAAY;EAC5B;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIT,MAAMA,CAAA,EAAG;IACT,OAAO,IAAI,CAACU,UAAU;EAC1B;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIT,IAAIA,CAAA,EAAG;IACP,OAAO,IAAI,CAACU,QAAQ;EACxB;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIT,QAAQA,CAAA,EAAG;IACX,OAAO,IAAI,CAACU,YAAY;EAC5B;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIT,MAAMA,CAAA,EAAG;IACT,OAAO,IAAI,CAACU,UAAU;EAC1B;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIT,QAAQA,CAAA,EAAG;IACX,OAAO,IAAI,CAACU,YAAY;EAC5B;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIT,2BAA2BA,CAAA,EAAG;IAC9B,OAAO,IAAI,CAACU,+BAA+B;EAC/C;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIT,YAAYA,CAAA,EAAG;IACf,OAAO,IAAI,CAACU,gBAAgB;EAChC;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIT,IAAIA,CAAA,EAAG;IACP,OAAO,IAAI,CAACU,QAAQ;EACxB;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIT,UAAUA,CAAA,EAAG;IACb,OAAO,IAAI,CAACU,cAAc;EAC9B;AACJ;AACAvB,OAAO,CAACE,iBAAiB,GAAGA,iBAAiB","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}