UNPKG

@euirim/microsoft-cognitiveservices-speech-sdk

Version:
33 lines (31 loc) 1.23 kB
"use strict"; // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. Object.defineProperty(exports, "__esModule", { value: true }); var Exports_1 = require("../Exports"); var TranslationSynthesisEnd = /** @class */ (function () { function TranslationSynthesisEnd(json) { this.privSynthesisEnd = JSON.parse(json); this.privSynthesisEnd.SynthesisStatus = Exports_1.SynthesisStatus[this.privSynthesisEnd.SynthesisStatus]; } TranslationSynthesisEnd.fromJSON = function (json) { return new TranslationSynthesisEnd(json); }; Object.defineProperty(TranslationSynthesisEnd.prototype, "SynthesisStatus", { get: function () { return this.privSynthesisEnd.SynthesisStatus; }, enumerable: true, configurable: true }); Object.defineProperty(TranslationSynthesisEnd.prototype, "FailureReason", { get: function () { return this.privSynthesisEnd.FailureReason; }, enumerable: true, configurable: true }); return TranslationSynthesisEnd; }()); exports.TranslationSynthesisEnd = TranslationSynthesisEnd; //# sourceMappingURL=TranslationSynthesisEnd.js.map