46563c199789e280ee69aa95240834ace187c622a1b9f76202dd1b5087767b9a.json 4.6 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.SimpleSpeechPhrase = void 0;\nconst Exports_js_1 = require(\"../Exports.js\");\nclass SimpleSpeechPhrase {\n constructor(json) {\n this.privSimpleSpeechPhrase = JSON.parse(json);\n this.privSimpleSpeechPhrase.RecognitionStatus = Exports_js_1.RecognitionStatus[this.privSimpleSpeechPhrase.RecognitionStatus];\n }\n static fromJSON(json) {\n return new SimpleSpeechPhrase(json);\n }\n get RecognitionStatus() {\n return this.privSimpleSpeechPhrase.RecognitionStatus;\n }\n get DisplayText() {\n return this.privSimpleSpeechPhrase.DisplayText;\n }\n get Offset() {\n return this.privSimpleSpeechPhrase.Offset;\n }\n get Duration() {\n return this.privSimpleSpeechPhrase.Duration;\n }\n get Language() {\n return this.privSimpleSpeechPhrase.PrimaryLanguage === undefined ? undefined : this.privSimpleSpeechPhrase.PrimaryLanguage.Language;\n }\n get LanguageDetectionConfidence() {\n return this.privSimpleSpeechPhrase.PrimaryLanguage === undefined ? undefined : this.privSimpleSpeechPhrase.PrimaryLanguage.Confidence;\n }\n get SpeakerId() {\n return this.privSimpleSpeechPhrase.SpeakerId;\n }\n}\nexports.SimpleSpeechPhrase = SimpleSpeechPhrase;","map":{"version":3,"names":["Object","defineProperty","exports","value","SimpleSpeechPhrase","Exports_js_1","require","constructor","json","privSimpleSpeechPhrase","JSON","parse","RecognitionStatus","fromJSON","DisplayText","Offset","Duration","Language","PrimaryLanguage","undefined","LanguageDetectionConfidence","Confidence","SpeakerId"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/ServiceMessages/SimpleSpeechPhrase.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.SimpleSpeechPhrase = void 0;\nconst Exports_js_1 = require(\"../Exports.js\");\nclass SimpleSpeechPhrase {\n constructor(json) {\n this.privSimpleSpeechPhrase = JSON.parse(json);\n this.privSimpleSpeechPhrase.RecognitionStatus = Exports_js_1.RecognitionStatus[this.privSimpleSpeechPhrase.RecognitionStatus];\n }\n static fromJSON(json) {\n return new SimpleSpeechPhrase(json);\n }\n get RecognitionStatus() {\n return this.privSimpleSpeechPhrase.RecognitionStatus;\n }\n get DisplayText() {\n return this.privSimpleSpeechPhrase.DisplayText;\n }\n get Offset() {\n return this.privSimpleSpeechPhrase.Offset;\n }\n get Duration() {\n return this.privSimpleSpeechPhrase.Duration;\n }\n get Language() {\n return this.privSimpleSpeechPhrase.PrimaryLanguage === undefined ? undefined : this.privSimpleSpeechPhrase.PrimaryLanguage.Language;\n }\n get LanguageDetectionConfidence() {\n return this.privSimpleSpeechPhrase.PrimaryLanguage === undefined ? undefined : this.privSimpleSpeechPhrase.PrimaryLanguage.Confidence;\n }\n get SpeakerId() {\n return this.privSimpleSpeechPhrase.SpeakerId;\n }\n}\nexports.SimpleSpeechPhrase = SimpleSpeechPhrase;\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,kBAAkB,GAAG,KAAK,CAAC;AACnC,MAAMC,YAAY,GAAGC,OAAO,CAAC,eAAe,CAAC;AAC7C,MAAMF,kBAAkB,CAAC;EACrBG,WAAWA,CAACC,IAAI,EAAE;IACd,IAAI,CAACC,sBAAsB,GAAGC,IAAI,CAACC,KAAK,CAACH,IAAI,CAAC;IAC9C,IAAI,CAACC,sBAAsB,CAACG,iBAAiB,GAAGP,YAAY,CAACO,iBAAiB,CAAC,IAAI,CAACH,sBAAsB,CAACG,iBAAiB,CA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