UNPKG

@euirim/microsoft-cognitiveservices-speech-sdk

Version:
38 lines (36 loc) 1.2 kB
"use strict"; // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. Object.defineProperty(exports, "__esModule", { value: true }); var SpeechHypothesis = /** @class */ (function () { function SpeechHypothesis(json) { this.privSpeechHypothesis = JSON.parse(json); } SpeechHypothesis.fromJSON = function (json) { return new SpeechHypothesis(json); }; Object.defineProperty(SpeechHypothesis.prototype, "Text", { get: function () { return this.privSpeechHypothesis.Text; }, enumerable: true, configurable: true }); Object.defineProperty(SpeechHypothesis.prototype, "Offset", { get: function () { return this.privSpeechHypothesis.Offset; }, enumerable: true, configurable: true }); Object.defineProperty(SpeechHypothesis.prototype, "Duration", { get: function () { return this.privSpeechHypothesis.Duration; }, enumerable: true, configurable: true }); return SpeechHypothesis; }()); exports.SpeechHypothesis = SpeechHypothesis; //# sourceMappingURL=SpeechHypothesis.js.map