UNPKG

@euirim/microsoft-cognitiveservices-speech-sdk

Version:
47 lines (45 loc) 1.69 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 DetailedSpeechPhrase = /** @class */ (function () { function DetailedSpeechPhrase(json) { this.privDetailedSpeechPhrase = JSON.parse(json); this.privDetailedSpeechPhrase.RecognitionStatus = Exports_1.RecognitionStatus[this.privDetailedSpeechPhrase.RecognitionStatus]; } DetailedSpeechPhrase.fromJSON = function (json) { return new DetailedSpeechPhrase(json); }; Object.defineProperty(DetailedSpeechPhrase.prototype, "RecognitionStatus", { get: function () { return this.privDetailedSpeechPhrase.RecognitionStatus; }, enumerable: true, configurable: true }); Object.defineProperty(DetailedSpeechPhrase.prototype, "NBest", { get: function () { return this.privDetailedSpeechPhrase.NBest; }, enumerable: true, configurable: true }); Object.defineProperty(DetailedSpeechPhrase.prototype, "Duration", { get: function () { return this.privDetailedSpeechPhrase.Duration; }, enumerable: true, configurable: true }); Object.defineProperty(DetailedSpeechPhrase.prototype, "Offset", { get: function () { return this.privDetailedSpeechPhrase.Offset; }, enumerable: true, configurable: true }); return DetailedSpeechPhrase; }()); exports.DetailedSpeechPhrase = DetailedSpeechPhrase; //# sourceMappingURL=DetailedSpeechPhrase.js.map