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.SynthesizerConfig = exports.SynthesisServiceType = void 0;\nconst Exports_js_1 = require(\"./Exports.js\");\nvar SynthesisServiceType;\n(function (SynthesisServiceType) {\n SynthesisServiceType[SynthesisServiceType[\"Standard\"] = 0] = \"Standard\";\n SynthesisServiceType[SynthesisServiceType[\"Custom\"] = 1] = \"Custom\";\n})(SynthesisServiceType = exports.SynthesisServiceType || (exports.SynthesisServiceType = {}));\nclass SynthesizerConfig {\n constructor(speechServiceConfig, parameters) {\n this.privSynthesisServiceType = SynthesisServiceType.Standard;\n this.avatarEnabled = false;\n this.privSpeechServiceConfig = speechServiceConfig ? speechServiceConfig : new Exports_js_1.SpeechServiceConfig(new Exports_js_1.Context(null));\n this.privParameters = parameters;\n }\n get parameters() {\n return this.privParameters;\n }\n get synthesisServiceType() {\n return this.privSynthesisServiceType;\n }\n set synthesisServiceType(value) {\n this.privSynthesisServiceType = value;\n }\n set synthesisVideoSection(value) {\n this.privSpeechServiceConfig.Context.synthesis = {\n video: value\n };\n }\n get SpeechServiceConfig() {\n return this.privSpeechServiceConfig;\n }\n}\nexports.SynthesizerConfig = SynthesizerConfig;","map":{"version":3,"names":["Object","defineProperty","exports","value","SynthesizerConfig","SynthesisServiceType","Exports_js_1","require","constructor","speechServiceConfig","parameters","privSynthesisServiceType","Standard","avatarEnabled","privSpeechServiceConfig","SpeechServiceConfig","Context","privParameters","synthesisServiceType","synthesisVideoSection","synthesis","video"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SynthesizerConfig.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.SynthesizerConfig = exports.SynthesisServiceType = void 0;\nconst Exports_js_1 = require(\"./Exports.js\");\nvar SynthesisServiceType;\n(function (SynthesisServiceType) {\n SynthesisServiceType[SynthesisServiceType[\"Standard\"] = 0] = \"Standard\";\n SynthesisServiceType[SynthesisServiceType[\"Custom\"] = 1] = \"Custom\";\n})(SynthesisServiceType = exports.SynthesisServiceType || (exports.SynthesisServiceType = {}));\nclass SynthesizerConfig {\n constructor(speechServiceConfig, parameters) {\n this.privSynthesisServiceType = SynthesisServiceType.Standard;\n this.avatarEnabled = false;\n this.privSpeechServiceConfig = speechServiceConfig ? speechServiceConfig : new Exports_js_1.SpeechServiceConfig(new Exports_js_1.Context(null));\n this.privParameters = parameters;\n }\n get parameters() {\n return this.privParameters;\n }\n get synthesisServiceType() {\n return this.privSynthesisServiceType;\n }\n set synthesisServiceType(value) {\n this.privSynthesisServiceType = value;\n }\n set synthesisVideoSection(value) {\n this.privSpeechServiceConfig.Context.synthesis = {\n video: value\n };\n }\n get SpeechServiceConfig() {\n return this.privSpeechServiceConfig;\n }\n}\nexports.SynthesizerConfig = SynthesizerConfig;\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,iBAAiB,GAAGF,OAAO,CAACG,oBAAoB,GAAG,KAAK,CAAC;AACjE,MAAMC,YAAY,GAAGC,OAAO,CAAC,cAAc,CAAC;AAC5C,IAAIF,oBAAoB;AACxB,CAAC,UAAUA,oBAAoB,EAAE;EAC7BA,oBAAoB,CAACA,oBAAoB,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU;EACvEA,oBAAoB,CAACA,oBAAoB,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG,QAAQ;AACvE,CAAC,EAAEA,oBAAoB,GAAGH,OAAO,CAACG,oBAAoB,KAAKH,OAAO,CAACG,oBAAoB,GAAG,CAAC,CAAC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