Dela via


RecognitionEventArgs Class

public class RecognitionEventArgs
extends SessionEventArgs

Defines payload for recognition events like Speech Start/End Detected

Field Summary

Modifier and Type Field and Description
java.math.BigInteger offset

Represents the message offset in 100nsec increments.

Constructor Summary

Constructor Description
RecognitionEventArgs(long eventArgs)

Constructs an instance of a RecognitionEventArgs object.

RecognitionEventArgs(long eventArgs, boolean dispose)

Constructs an instance of a RecognitionEventArgs object.

Method Summary

Modifier and Type Method and Description
protected final native long getRecognitionResult(SafeHandle eventHandle, IntRef resultHandle)

Native JNI call to get the native handle to recognition result.

java.lang.String toString()

Returns a String that represents the recognition event payload.

Methods inherited from SessionEventArgs

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Field Details

offset

public BigInteger offset

Represents the message offset in 100nsec increments.

Constructor Details

RecognitionEventArgs

public RecognitionEventArgs(long eventArgs)

Constructs an instance of a RecognitionEventArgs object.

Parameters:

eventArgs - recognition event args object.

RecognitionEventArgs

public RecognitionEventArgs(long eventArgs, boolean dispose)

Constructs an instance of a RecognitionEventArgs object.

Parameters:

eventArgs - recognition event args object.
dispose - should the args be disposed when done?

Method Details

getRecognitionResult

protected final native long getRecognitionResult(SafeHandle eventHandle, IntRef resultHandle)

Native JNI call to get the native handle to recognition result.

Parameters:

eventHandle - The event handle.
resultHandle - The result handle.

Returns:

The native handle to recognition result.

toString

public String toString()

Returns a String that represents the recognition event payload.

Overrides:

RecognitionEventArgs.toString()

Returns:

A String that represents the recognition event payload.

Applies to