@voice-ping/cognitive-services-speech
Version:
VoicePing Cognitive Services Speech SDK for JavaScript forked from Microsoft
1 lines • 3.74 kB
Source Map (JSON)
{"version":3,"sources":["src/sdk/SpeechSynthesisResult.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE7D;;;;GAIG;AACH,qBAAa,qBAAqB;IAC9B,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,UAAU,CAAe;IACjC,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,aAAa,CAAc;IACnC,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,cAAc,CAAqB;IAE3C;;;;;;;;OAQG;gBACS,QAAQ,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,YAAY,EAAG,SAAS,CAAC,EAAE,WAAW,EAClE,YAAY,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,kBAAkB;IAQlE;;;;;;OAMG;IACH,IAAW,QAAQ,IAAI,MAAM,CAE5B;IAED;;;;;;OAMG;IACH,IAAW,MAAM,IAAI,YAAY,CAEhC;IAED;;;;;;OAMG;IACH,IAAW,SAAS,IAAI,WAAW,CAElC;IAED;;;;;;OAMG;IACH,IAAW,YAAY,IAAI,MAAM,CAEhC;IAED;;;;;;OAMG;IACH,IAAW,UAAU,IAAI,kBAAkB,CAE1C;CACJ","file":"SpeechSynthesisResult.d.ts","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\n\nimport { PropertyCollection, ResultReason } from \"./Exports\";\n\n/**\n * Defines result of speech synthesis.\n * @class SpeechSynthesisResult\n * Added in version 1.11.0\n */\nexport class SpeechSynthesisResult {\n private privResultId: string;\n private privReason: ResultReason;\n private privText: string;\n private privAudioData: ArrayBuffer;\n private privOffset: number;\n private privErrorDetails: string;\n private privProperties: PropertyCollection;\n\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 {number} audioData - The offset into the stream.\n * @param {string} errorDetails - Error details, if provided.\n * @param {PropertyCollection} properties - Additional properties, if provided.\n */\n constructor(resultId?: string, reason?: ResultReason, audioData?: ArrayBuffer,\n errorDetails?: string, properties?: PropertyCollection) {\n this.privResultId = resultId;\n this.privReason = reason;\n this.privAudioData = audioData;\n this.privErrorDetails = errorDetails;\n this.privProperties = properties;\n }\n\n /**\n * Specifies the result identifier.\n * @member SpeechSynthesisResult.prototype.resultId\n * @function\n * @public\n * @returns {string} Specifies the result identifier.\n */\n public get resultId(): string {\n return this.privResultId;\n }\n\n /**\n * Specifies status of the result.\n * @member SpeechSynthesisResult.prototype.reason\n * @function\n * @public\n * @returns {ResultReason} Specifies status of the result.\n */\n public get reason(): ResultReason {\n return this.privReason;\n }\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 public get audioData(): ArrayBuffer {\n return this.privAudioData;\n }\n\n /**\n * In case of an unsuccessful synthesis, provides details of the occurred error.\n * @member SpeechSynthesisResult.prototype.errorDetails\n * @function\n * @public\n * @returns {string} a brief description of an error.\n */\n public get errorDetails(): string {\n return this.privErrorDetails;\n }\n\n /**\n * The set of properties exposed in the result.\n * @member SpeechSynthesisResult.prototype.properties\n * @function\n * @public\n * @returns {PropertyCollection} The set of properties exposed in the result.\n */\n public get properties(): PropertyCollection {\n return this.privProperties;\n }\n}\n"]}