UNPKG

@euirim/microsoft-cognitiveservices-speech-sdk

Version:
27 lines (25 loc) 855 B
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. import { RecognitionStatus } from "../Exports"; export class SimpleSpeechPhrase { constructor(json) { this.privSimpleSpeechPhrase = JSON.parse(json); this.privSimpleSpeechPhrase.RecognitionStatus = RecognitionStatus[this.privSimpleSpeechPhrase.RecognitionStatus]; } static fromJSON(json) { return new SimpleSpeechPhrase(json); } get RecognitionStatus() { return this.privSimpleSpeechPhrase.RecognitionStatus; } get DisplayText() { return this.privSimpleSpeechPhrase.DisplayText; } get Offset() { return this.privSimpleSpeechPhrase.Offset; } get Duration() { return this.privSimpleSpeechPhrase.Duration; } } //# sourceMappingURL=SimpleSpeechPhrase.js.map