@voice-ping/cognitive-services-speech
Version:
VoicePing Cognitive Services Speech SDK for JavaScript forked from Microsoft
25 lines (24 loc) • 940 B
TypeScript
import { RecognitionEventArgs, SpeechRecognitionResultCustom } from "./Exports";
/**
* Defines contents of speech recognizing/recognized event.
* @class SpeechRecognitionEventArgsCustom
*/
export declare class SpeechRecognitionEventArgsCustom extends RecognitionEventArgs {
private privResult;
/**
* 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: SpeechRecognitionResultCustom, offset?: number, sessionId?: string);
/**
* Specifies the recognition result.
* @member SpeechRecognitionEventArgs.prototype.result
* @function
* @public
* @returns {SpeechRecognitionResultCustom} the recognition result.
*/
get result(): SpeechRecognitionResultCustom;
}