13073b4257641b8fd363fd72774d628a883c767e0d75787eb88bf5c59dc64506.json 3.7 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.SpeechHypothesis = void 0;\nclass SpeechHypothesis {\n constructor(json) {\n this.privSpeechHypothesis = JSON.parse(json);\n }\n static fromJSON(json) {\n return new SpeechHypothesis(json);\n }\n get Text() {\n return this.privSpeechHypothesis.Text;\n }\n get Offset() {\n return this.privSpeechHypothesis.Offset;\n }\n get Duration() {\n return this.privSpeechHypothesis.Duration;\n }\n get Language() {\n return this.privSpeechHypothesis.PrimaryLanguage === undefined ? undefined : this.privSpeechHypothesis.PrimaryLanguage.Language;\n }\n get LanguageDetectionConfidence() {\n return this.privSpeechHypothesis.PrimaryLanguage === undefined ? undefined : this.privSpeechHypothesis.PrimaryLanguage.Confidence;\n }\n get SpeakerId() {\n return this.privSpeechHypothesis.SpeakerId;\n }\n}\nexports.SpeechHypothesis = SpeechHypothesis;","map":{"version":3,"names":["Object","defineProperty","exports","value","SpeechHypothesis","constructor","json","privSpeechHypothesis","JSON","parse","fromJSON","Text","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/SpeechHypothesis.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.SpeechHypothesis = void 0;\nclass SpeechHypothesis {\n constructor(json) {\n this.privSpeechHypothesis = JSON.parse(json);\n }\n static fromJSON(json) {\n return new SpeechHypothesis(json);\n }\n get Text() {\n return this.privSpeechHypothesis.Text;\n }\n get Offset() {\n return this.privSpeechHypothesis.Offset;\n }\n get Duration() {\n return this.privSpeechHypothesis.Duration;\n }\n get Language() {\n return this.privSpeechHypothesis.PrimaryLanguage === undefined ? undefined : this.privSpeechHypothesis.PrimaryLanguage.Language;\n }\n get LanguageDetectionConfidence() {\n return this.privSpeechHypothesis.PrimaryLanguage === undefined ? undefined : this.privSpeechHypothesis.PrimaryLanguage.Confidence;\n }\n get SpeakerId() {\n return this.privSpeechHypothesis.SpeakerId;\n }\n}\nexports.SpeechHypothesis = SpeechHypothesis;\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,gBAAgB,GAAG,KAAK,CAAC;AACjC,MAAMA,gBAAgB,CAAC;EACnBC,WAAWA,CAACC,IAAI,EAAE;IACd,IAAI,CAACC,oBAAoB,GAAGC,IAAI,CAACC,KAAK,CAACH,IAAI,CAAC;EAChD;EACA,OAAOI,QAAQA,CAACJ,IAAI,EAAE;IAClB,OAAO,IAAIF,gBAAgB,CAACE,IAAI,CAAC;EACrC;EACA,IAAIK,IAAIA,CAAA,EAAG;IACP,OAAO,IAAI,CAACJ,oBAAoB,CAACI,IAAI;EACzC;EACA,IAAIC,MAAMA,CAAA,EAAG;IACT,OAAO,IAAI,CAACL,oBAAoB,CAACK,MAAM;EAC3C;EACA,IAAIC,QAAQA,CAAA,EAAG;IACX,OAAO,IAAI,CAACN,oBAAoB,CAACM,QAAQ;EAC7C;EACA,IAAIC,QAAQA,CAAA,EAAG;IACX,OAAO,IAAI,CAACP,oBAAoB,CAACQ,eAAe,KAAKC,SAAS,GAAGA,SAAS,GAAG,IAAI,CAACT,oBAAoB,CAACQ,eAAe,CAACD,QAAQ;EACnI;EACA,IAAIG,2BAA2BA,CAAA,EAAG;IAC9B,OAAO,IAAI,CAACV,oBAAoB,CAACQ,eAAe,KAAKC,SAAS,GAAGA,SAAS,GAAG,IAAI,CAACT,oBAAoB,CAACQ,eAAe,CAACG,UAAU;EACrI;EACA,IAAIC,SAASA,CAAA,EAAG;IACZ,OAAO,IAAI,CAACZ,oBAAoB,CAACY,SAAS;EAC9C;AACJ;AACAjB,OAAO,CAACE,gBAAgB,GAAGA,gBAAgB","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}