UNPKG

@euirim/microsoft-cognitiveservices-speech-sdk

Version:
22 lines (20 loc) 559 B
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. export class SpeechHypothesis { constructor(json) { this.privSpeechHypothesis = JSON.parse(json); } static fromJSON(json) { return new SpeechHypothesis(json); } get Text() { return this.privSpeechHypothesis.Text; } get Offset() { return this.privSpeechHypothesis.Offset; } get Duration() { return this.privSpeechHypothesis.Duration; } } //# sourceMappingURL=SpeechHypothesis.js.map