microsoft-cognitiveservices-speech-sdk
Version:
Microsoft Cognitive Services Speech SDK for JavaScript
36 lines (34 loc) • 1.21 kB
JavaScript
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", { value: true });
exports.TranslationSynthesisEventArgs = void 0;
const Exports_js_1 = require("./Exports.js");
/**
* Translation Synthesis event arguments
* @class TranslationSynthesisEventArgs
*/
class TranslationSynthesisEventArgs extends Exports_js_1.SessionEventArgs {
/**
* Creates and initializes an instance of this class.
* @constructor
* @param {TranslationSynthesisResult} result - The translation synthesis result.
* @param {string} sessionId - The session id.
*/
constructor(result, sessionId) {
super(sessionId);
this.privResult = result;
}
/**
* Specifies the translation synthesis result.
* @member TranslationSynthesisEventArgs.prototype.result
* @function
* @public
* @returns {TranslationSynthesisResult} Specifies the translation synthesis result.
*/
get result() {
return this.privResult;
}
}
exports.TranslationSynthesisEventArgs = TranslationSynthesisEventArgs;
//# sourceMappingURL=TranslationSynthesisEventArgs.js.map
;