@euirim/microsoft-cognitiveservices-speech-sdk
Version:
Microsoft Cognitive Services Speech SDK for JavaScript
39 lines (37 loc) • 1.4 kB
JavaScript
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
import { SpeechRecognitionResult } from "./Exports";
/**
* Intent recognition result.
* @class
*/
export class IntentRecognitionResult extends SpeechRecognitionResult {
/**
* Creates and initializes an instance of this class.
* @constructor
* @param intentId - The intent id.
* @param resultId - The result id.
* @param reason - The reason.
* @param text - The recognized text.
* @param duration - The duration.
* @param offset - The offset into the stream.
* @param errorDetails - Error details, if provided.
* @param json - Additional Json, if provided.
* @param properties - Additional properties, if provided.
*/
constructor(intentId, resultId, reason, text, duration, offset, errorDetails, json, properties) {
super(resultId, reason, text, duration, offset, errorDetails, json, properties);
this.privIntentId = intentId;
}
/**
* A String that represents the intent identifier being recognized.
* @member IntentRecognitionResult.prototype.intentId
* @function
* @public
* @returns {string} A String that represents the intent identifier being recognized.
*/
get intentId() {
return this.privIntentId;
}
}
//# sourceMappingURL=IntentRecognitionResult.js.map