@voice-ping/cognitive-services-speech
Version:
VoicePing Cognitive Services Speech SDK for JavaScript forked from Microsoft
33 lines (31 loc) • 1.07 kB
JavaScript
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
import { RecognitionEventArgs } from "./Exports";
/**
* Defines contents of speech recognizing/recognized event.
* @class SpeechRecognitionEventArgsCustom
*/
export class SpeechRecognitionEventArgsCustom extends RecognitionEventArgs {
/**
* Creates and initializes an instance of this class.
* @constructor
* @param {SpeechRecognitionResultCustom} result - The speech recognition result.
* @param {number} offset - The offset.
* @param {string} sessionId - The session id.
*/
constructor(result, offset, sessionId) {
super(offset, sessionId);
this.privResult = result;
}
/**
* Specifies the recognition result.
* @member SpeechRecognitionEventArgs.prototype.result
* @function
* @public
* @returns {SpeechRecognitionResultCustom} the recognition result.
*/
get result() {
return this.privResult;
}
}
//# sourceMappingURL=SpeechRecognitionEventArgsCustom.js.map