@voice-ping/cognitive-services-speech
Version:
VoicePing Cognitive Services Speech SDK for JavaScript forked from Microsoft
49 lines (47 loc) • 2.4 kB
JavaScript
;
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var Exports_1 = require("./Exports");
/**
* Defines result of speech recognition.
* @class SpeechRecognitionResultCustom
*/
var SpeechRecognitionResultCustom = /** @class */ (function (_super) {
__extends(SpeechRecognitionResultCustom, _super);
/**
* Creates and initializes an instance of this class.
* @constructor
* @public
* @param {string} resultId - The result id.
* @param {ResultReason} reason - The reason.
* @param {string} text - The recognized text.
* @param {number} duration - The duration.
* @param {number} offset - The offset into the stream.
* @param {string} language - Primary Language detected, if provided.
* @param {string} languageDetectionConfidence - Primary Language confidence ("Unknown," "Low," "Medium," "High"...), if provided.
* @param {string} errorDetails - Error details, if provided.
* @param {string} json - Additional Json, if provided.
* @param {PropertyCollection} properties - Additional properties, if provided.
* @param {string} requestId - requestId for DEBUG.
*/
function SpeechRecognitionResultCustom(resultId, reason, text, duration, offset, language, languageDetectionConfidence, errorDetails, json, properties, requestId) {
return _super.call(this, resultId, reason, text, duration, offset, language, languageDetectionConfidence, errorDetails, json, properties, requestId) || this;
}
return SpeechRecognitionResultCustom;
}(Exports_1.RecognitionResultCustom));
exports.SpeechRecognitionResultCustom = SpeechRecognitionResultCustom;
//# sourceMappingURL=SpeechRecognitionResultCustom.js.map