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.SpeechSynthesisResult = void 0;\nconst Exports_js_1 = require(\"./Exports.js\");\n/**\n * Defines result of speech synthesis.\n * @class SpeechSynthesisResult\n * Added in version 1.11.0\n */\nclass SpeechSynthesisResult extends Exports_js_1.SynthesisResult {\n /**\n * Creates and initializes an instance of this class.\n * @constructor\n * @param {string} resultId - The result id.\n * @param {ResultReason} reason - The reason.\n * @param {ArrayBuffer} audioData - The synthesized audio binary.\n * @param {string} errorDetails - Error details, if provided.\n * @param {PropertyCollection} properties - Additional properties, if provided.\n * @param {number} audioDuration - The audio duration.\n */\n constructor(resultId, reason, audioData, errorDetails, properties, audioDuration) {\n super(resultId, reason, errorDetails, properties);\n this.privAudioData = audioData;\n this.privAudioDuration = audioDuration;\n }\n /**\n * The synthesized audio data\n * @member SpeechSynthesisResult.prototype.audioData\n * @function\n * @public\n * @returns {ArrayBuffer} The synthesized audio data.\n */\n get audioData() {\n return this.privAudioData;\n }\n /**\n * The time duration of synthesized audio, in ticks (100 nanoseconds).\n * @member SpeechSynthesisResult.prototype.audioDuration\n * @function\n * @public\n * @returns {number} The time duration of synthesized audio.\n */\n get audioDuration() {\n return this.privAudioDuration;\n }\n}\nexports.SpeechSynthesisResult = SpeechSynthesisResult;","map":{"version":3,"names":["Object","defineProperty","exports","value","SpeechSynthesisResult","Exports_js_1","require","SynthesisResult","constructor","resultId","reason","audioData","errorDetails","properties","audioDuration","privAudioData","privAudioDuration"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisResult.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.SpeechSynthesisResult = void 0;\nconst Exports_js_1 = require(\"./Exports.js\");\n/**\n * Defines result of speech synthesis.\n * @class SpeechSynthesisResult\n * Added in version 1.11.0\n */\nclass SpeechSynthesisResult extends Exports_js_1.SynthesisResult {\n /**\n * Creates and initializes an instance of this class.\n * @constructor\n * @param {string} resultId - The result id.\n * @param {ResultReason} reason - The reason.\n * @param {ArrayBuffer} audioData - The synthesized audio binary.\n * @param {string} errorDetails - Error details, if provided.\n * @param {PropertyCollection} properties - Additional properties, if provided.\n * @param {number} audioDuration - The audio duration.\n */\n constructor(resultId, reason, audioData, errorDetails, properties, audioDuration) {\n super(resultId, reason, errorDetails, properties);\n this.privAudioData = audioData;\n this.privAudioDuration = audioDuration;\n }\n /**\n * The synthesized audio data\n * @member SpeechSynthesisResult.prototype.audioData\n * @function\n * @public\n * @returns {ArrayBuffer} The synthesized audio data.\n */\n get audioData() {\n return this.privAudioData;\n }\n /**\n * The time duration of synthesized audio, in ticks (100 nanoseconds).\n * @member SpeechSynthesisResult.prototype.audioDuration\n * @function\n * @public\n * @returns {number} The time duration of synthesized audio.\n */\n get audioDuration() {\n return this.privAudioDuration;\n }\n}\nexports.SpeechSynthesisResult = SpeechSynthesisResult;\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;AACA;AACA;AACA;AACA;EACIC,WAAWA,CAACC,QAAQ,EAAEC,MAAM,EAAEC,SAAS,EAAEC,YAAY,EAAEC,UAAU,EAAEC,aAAa,EAAE;IAC9E,KAAK,CAACL,QAAQ,EAAEC,MAAM,EAAEE,YAAY,EAAEC,UAAU,CAAC;IACjD,IAAI,CAACE,aAAa,GAAGJ,SAAS;IAC9B,IAAI,CAACK,iBAAiB,GAAGF,aAAa;EAC1C;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIH,SAASA,CAAA,EAAG;IACZ,OAAO,IAAI,CAACI,aAAa;EAC7B;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAID,aAAaA,CAAA,EAAG;IAChB,OAAO,IAAI,CAACE,iBAAiB;EACjC;AACJ;AACAd,OAAO,CAACE,qBAAqB,GAAGA,qBAAqB","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}
|