44b3fe820c58f0fbf142c98d1e3de54918a12ceaf9029e2d820dba3bfeee0474.json 5.2 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.SpeechRecognitionResult = void 0;\nconst Exports_js_1 = require(\"./Exports.js\");\n/**\n * Defines result of speech recognition.\n * @class SpeechRecognitionResult\n */\nclass SpeechRecognitionResult extends Exports_js_1.RecognitionResult {\n /**\n * Creates and initializes an instance of this class.\n * @constructor\n * @public\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} speakerId - speaker id for conversation transcription, 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, speakerId, errorDetails, json, properties) {\n super(resultId, reason, text, duration, offset, language, languageDetectionConfidence, errorDetails, json, properties);\n this.privSpeakerId = speakerId;\n }\n /**\n * speaker id from conversation transcription/id scenarios\n * @member SpeechRecognitionResult.prototype.speakerId\n * @function\n * @public\n * @returns {string} id of speaker in given result\n */\n get speakerId() {\n return this.privSpeakerId;\n }\n}\nexports.SpeechRecognitionResult = SpeechRecognitionResult;","map":{"version":3,"names":["Object","defineProperty","exports","value","SpeechRecognitionResult","Exports_js_1","require","RecognitionResult","constructor","resultId","reason","text","duration","offset","language","languageDetectionConfidence","speakerId","errorDetails","json","properties","privSpeakerId"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechRecognitionResult.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.SpeechRecognitionResult = void 0;\nconst Exports_js_1 = require(\"./Exports.js\");\n/**\n * Defines result of speech recognition.\n * @class SpeechRecognitionResult\n */\nclass SpeechRecognitionResult extends Exports_js_1.RecognitionResult {\n /**\n * Creates and initializes an instance of this class.\n * @constructor\n * @public\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} speakerId - speaker id for conversation transcription, 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, speakerId, errorDetails, json, properties) {\n super(resultId, reason, text, duration, offset, language, languageDetectionConfidence, errorDetails, json, properties);\n this.privSpeakerId = speakerId;\n }\n /**\n * speaker id from conversation transcription/id scenarios\n * @member SpeechRecognitionResult.prototype.speakerId\n * @function\n * @public\n * @returns {string} id of speaker in given result\n */\n get speakerId() {\n return this.privSpeakerId;\n }\n}\nexports.SpeechRecognitionResult = SpeechRecognitionResult;\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,uBAAuB,GAAG,KAAK,CAAC;AACxC,MAAMC,YAAY,GAAGC,OAAO,CAAC,cAAc,CAAC;AAC5C;AACA;AACA;AACA;AACA,MAAMF,uBAAuB,SAASC,YAAY,CAACE,iBAAiB,CAAC;EACjE;AACJ;AACA;AACA;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,SAAS,EAAEC,YAAY,EAAEC,IAAI,EAAEC,UAAU,EAAE;IACpI,KAAK,CAACV,QAAQ,EAAEC,MAAM,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,2BAA2B,EAAEE,YAAY,EAAEC,IAAI,EAAEC,UAAU,CAAC;IACtH,IAAI,CAACC,aAAa,GAAGJ,SAAS;EAClC;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIA,SAASA,CAAA,EAAG;IACZ,OAAO,IAAI,CAACI,aAAa;EAC7B;AACJ;AACAlB,OAAO,CAACE,uBAAuB,GAAGA,uBAAuB","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}