9c57ad58925fa10ad19360e5c49a6856e07c0de849167ad419110793e4bdd645.json 3.5 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.TranslationSynthesisEnd = void 0;\nconst Exports_js_1 = require(\"../Exports.js\");\nclass TranslationSynthesisEnd {\n constructor(json) {\n this.privSynthesisEnd = JSON.parse(json);\n if (!!this.privSynthesisEnd.SynthesisStatus) {\n this.privSynthesisEnd.SynthesisStatus = Exports_js_1.SynthesisStatus[this.privSynthesisEnd.SynthesisStatus];\n }\n if (!!this.privSynthesisEnd.Status) {\n this.privSynthesisEnd.SynthesisStatus = Exports_js_1.SynthesisStatus[this.privSynthesisEnd.Status];\n }\n }\n static fromJSON(json) {\n return new TranslationSynthesisEnd(json);\n }\n get SynthesisStatus() {\n return this.privSynthesisEnd.SynthesisStatus;\n }\n get FailureReason() {\n return this.privSynthesisEnd.FailureReason;\n }\n}\nexports.TranslationSynthesisEnd = TranslationSynthesisEnd;","map":{"version":3,"names":["Object","defineProperty","exports","value","TranslationSynthesisEnd","Exports_js_1","require","constructor","json","privSynthesisEnd","JSON","parse","SynthesisStatus","Status","fromJSON","FailureReason"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/ServiceMessages/TranslationSynthesisEnd.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.TranslationSynthesisEnd = void 0;\nconst Exports_js_1 = require(\"../Exports.js\");\nclass TranslationSynthesisEnd {\n constructor(json) {\n this.privSynthesisEnd = JSON.parse(json);\n if (!!this.privSynthesisEnd.SynthesisStatus) {\n this.privSynthesisEnd.SynthesisStatus = Exports_js_1.SynthesisStatus[this.privSynthesisEnd.SynthesisStatus];\n }\n if (!!this.privSynthesisEnd.Status) {\n this.privSynthesisEnd.SynthesisStatus = Exports_js_1.SynthesisStatus[this.privSynthesisEnd.Status];\n }\n }\n static fromJSON(json) {\n return new TranslationSynthesisEnd(json);\n }\n get SynthesisStatus() {\n return this.privSynthesisEnd.SynthesisStatus;\n }\n get FailureReason() {\n return this.privSynthesisEnd.FailureReason;\n }\n}\nexports.TranslationSynthesisEnd = TranslationSynthesisEnd;\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,eAAe,CAAC;AAC7C,MAAMF,uBAAuB,CAAC;EAC1BG,WAAWA,CAACC,IAAI,EAAE;IACd,IAAI,CAACC,gBAAgB,GAAGC,IAAI,CAACC,KAAK,CAACH,IAAI,CAAC;IACxC,IAAI,CAAC,CAAC,IAAI,CAACC,gBAAgB,CAACG,eAAe,EAAE;MACzC,IAAI,CAACH,gBAAgB,CAACG,eAAe,GAAGP,YAAY,CAACO,eAAe,CAAC,IAAI,CAACH,gBAAgB,CAACG,eAAe,CAAC;IAC/G;IACA,IAAI,CAAC,CAAC,IAAI,CAACH,gBAAgB,CAACI,MAAM,EAAE;MAChC,IAAI,CAACJ,gBAAgB,CAACG,eAAe,GAAGP,YAAY,CAACO,eAAe,CAAC,IAAI,CAACH,gBAAgB,CAACI,MAAM,CAAC;IACtG;EACJ;EACA,OAAOC,QAAQA,CAACN,IAAI,EAAE;IAClB,OAAO,IAAIJ,uBAAuB,CAACI,IAAI,CAAC;EAC5C;EACA,IAAII,eAAeA,CAAA,EAAG;IAClB,OAAO,IAAI,CAACH,gBAAgB,CAACG,eAAe;EAChD;EACA,IAAIG,aAAaA,CAAA,EAAG;IAChB,OAAO,IAAI,CAACN,gBAAgB,CAACM,aAAa;EAC9C;AACJ;AACAb,OAAO,CAACE,uBAAuB,GAAGA,uBAAuB","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}