UNPKG

microsoft-cognitiveservices-speech-sdk

Version:
1 lines 1.62 kB
{"version":3,"sources":["src/sdk/TranslationSynthesisEventArgs.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAE5E;;;GAGG;AACH,qBAAa,6BAA8B,SAAQ,gBAAgB;IAC/D,OAAO,CAAC,UAAU,CAA6B;IAE/C;;;;;OAKG;gBACgB,MAAM,EAAE,0BAA0B,EAAE,SAAS,CAAC,EAAE,MAAM;IAMzE;;;;;;OAMG;IACH,IAAW,MAAM,IAAI,0BAA0B,CAE9C;CACJ","file":"TranslationSynthesisEventArgs.d.ts","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT license.\r\n\r\nimport { SessionEventArgs, TranslationSynthesisResult } from \"./Exports.js\";\r\n\r\n/**\r\n * Translation Synthesis event arguments\r\n * @class TranslationSynthesisEventArgs\r\n */\r\nexport class TranslationSynthesisEventArgs extends SessionEventArgs {\r\n private privResult: TranslationSynthesisResult;\r\n\r\n /**\r\n * Creates and initializes an instance of this class.\r\n * @constructor\r\n * @param {TranslationSynthesisResult} result - The translation synthesis result.\r\n * @param {string} sessionId - The session id.\r\n */\r\n public constructor(result: TranslationSynthesisResult, sessionId?: string) {\r\n super(sessionId);\r\n\r\n this.privResult = result;\r\n }\r\n\r\n /**\r\n * Specifies the translation synthesis result.\r\n * @member TranslationSynthesisEventArgs.prototype.result\r\n * @function\r\n * @public\r\n * @returns {TranslationSynthesisResult} Specifies the translation synthesis result.\r\n */\r\n public get result(): TranslationSynthesisResult {\r\n return this.privResult;\r\n }\r\n}\r\n"]}