UNPKG

microsoft-cognitiveservices-speech-sdk

Version:
36 lines (34 loc) 1.21 kB
"use strict"; // 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