5df33f703d65ffe2a85fa6365595658bb2bea0c06ce91108c710ff49a723be51.json 4.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.SynthesisVoicesResult = void 0;\nconst Exports_js_1 = require(\"./Exports.js\");\n/**\n * Defines result of speech synthesis.\n * @class SynthesisVoicesResult\n * Added in version 1.20.0\n */\nclass SynthesisVoicesResult extends Exports_js_1.SynthesisResult {\n /**\n * Creates and initializes an instance of this class.\n * @constructor\n * @param requestId - result id for request.\n * @param json - json payload from endpoint.\n */\n constructor(requestId, json, errorDetails) {\n if (Array.isArray(json)) {\n super(requestId, Exports_js_1.ResultReason.VoicesListRetrieved, undefined, new Exports_js_1.PropertyCollection());\n this.privVoices = [];\n for (const item of json) {\n this.privVoices.push(new Exports_js_1.VoiceInfo(item));\n }\n } else {\n super(requestId, Exports_js_1.ResultReason.Canceled, errorDetails ? errorDetails : \"Error information unavailable\", new Exports_js_1.PropertyCollection());\n }\n }\n /**\n * The list of voices\n * @member SynthesisVoicesResult.prototype.voices\n * @function\n * @public\n * @returns {VoiceInfo[]} List of synthesized voices.\n */\n get voices() {\n return this.privVoices;\n }\n}\nexports.SynthesisVoicesResult = SynthesisVoicesResult;","map":{"version":3,"names":["Object","defineProperty","exports","value","SynthesisVoicesResult","Exports_js_1","require","SynthesisResult","constructor","requestId","json","errorDetails","Array","isArray","ResultReason","VoicesListRetrieved","undefined","PropertyCollection","privVoices","item","push","VoiceInfo","Canceled","voices"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SynthesisVoicesResult.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.SynthesisVoicesResult = void 0;\nconst Exports_js_1 = require(\"./Exports.js\");\n/**\n * Defines result of speech synthesis.\n * @class SynthesisVoicesResult\n * Added in version 1.20.0\n */\nclass SynthesisVoicesResult extends Exports_js_1.SynthesisResult {\n /**\n * Creates and initializes an instance of this class.\n * @constructor\n * @param requestId - result id for request.\n * @param json - json payload from endpoint.\n */\n constructor(requestId, json, errorDetails) {\n if (Array.isArray(json)) {\n super(requestId, Exports_js_1.ResultReason.VoicesListRetrieved, undefined, new Exports_js_1.PropertyCollection());\n this.privVoices = [];\n for (const item of json) {\n this.privVoices.push(new Exports_js_1.VoiceInfo(item));\n }\n }\n else {\n super(requestId, Exports_js_1.ResultReason.Canceled, errorDetails ? errorDetails : \"Error information unavailable\", new Exports_js_1.PropertyCollection());\n }\n }\n /**\n * The list of voices\n * @member SynthesisVoicesResult.prototype.voices\n * @function\n * @public\n * @returns {VoiceInfo[]} List of synthesized voices.\n */\n get voices() {\n return this.privVoices;\n }\n}\nexports.SynthesisVoicesResult = SynthesisVoicesResult;\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,qBAAqB,GAAG,KAAK,CAAC;AACtC,MAAMC,YAAY,GAAGC,OAAO,CAAC,cAAc,CAAC;AAC5C;AACA;AACA;AACA;AACA;AACA,MAAMF,qBAAqB,SAASC,YAAY,CAACE,eAAe,CAAC;EAC7D;AACJ;AACA;AACA;AACA;AACA;EACIC,WAAWA,CAACC,SAAS,EAAEC,IAAI,EAAEC,YAAY,EAAE;IACvC,IAAIC,KAAK,CAACC,OAAO,CAACH,IAAI,CAAC,EAAE;MACrB,KAAK,CAACD,SAAS,EAAEJ,YAAY,CAACS,YAAY,CAACC,mBAAmB,EAAEC,SAAS,EAAE,IAAIX,YAAY,CAACY,kBAAkB,CAAC,CAAC,CAAC;MACjH,IAAI,CAACC,UAAU,GAAG,EAAE;MACpB,KAAK,MAAMC,IAAI,IAAIT,IAAI,EAAE;QACrB,IAAI,CAACQ,UAAU,CAACE,IAAI,CAAC,IAAIf,YAAY,CAACgB,SAAS,CAACF,IAAI,CAAC,CAAC;MAC1D;IACJ,CAAC,MACI;MACD,KAAK,CAACV,SAAS,EAAEJ,YAAY,CAACS,YAAY,CAACQ,QAAQ,EAAEX,YAAY,GAAGA,YAAY,GAAG,+BAA+B,EAAE,IAAIN,YAAY,CAACY,kBAAkB,CAAC,CAAC,CAAC;IAC9J;EACJ;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIM,MAAMA,CAAA,EAAG;IACT,OAAO,IAAI,CAACL,UAAU;EAC1B;AACJ;AACAhB,OAAO,CAACE,qBAAqB,GAAGA,qBAAqB","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}