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.ConversationTranscriptionResult = void 0;\nconst Exports_js_1 = require(\"../Exports.js\");\n/**\n * Defines result of conversation transcription.\n * @class ConversationTranscriptionResult\n */\nclass ConversationTranscriptionResult 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.\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\n * @member ConversationTranscriptionResult.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.ConversationTranscriptionResult = ConversationTranscriptionResult;","map":{"version":3,"names":["Object","defineProperty","exports","value","ConversationTranscriptionResult","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/Transcription/ConversationTranscriptionResult.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.ConversationTranscriptionResult = void 0;\nconst Exports_js_1 = require(\"../Exports.js\");\n/**\n * Defines result of conversation transcription.\n * @class ConversationTranscriptionResult\n */\nclass ConversationTranscriptionResult 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.\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\n * @member ConversationTranscriptionResult.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.ConversationTranscriptionResult = ConversationTranscriptionResult;\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,+BAA+B,GAAG,KAAK,CAAC;AAChD,MAAMC,YAAY,GAAGC,OAAO,CAAC,eAAe,CAAC;AAC7C;AACA;AACA;AACA;AACA,MAAMF,+BAA+B,SAASC,YAAY,CAACE,iBAAiB,CAAC;EACzE;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,+BAA+B,GAAGA,+BAA+B","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}
|