@euirim/microsoft-cognitiveservices-speech-sdk
Version:
Microsoft Cognitive Services Speech SDK for JavaScript
22 lines (20 loc) • 559 B
JavaScript
// 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