Class SpeechRecognitionEventArgs
- java.lang.Object
-
- com.microsoft.cognitiveservices.speech.SessionEventArgs
-
- com.microsoft.cognitiveservices.speech.RecognitionEventArgs
-
- com.microsoft.cognitiveservices.speech.SpeechRecognitionEventArgs
-
- Direct Known Subclasses:
SpeechRecognitionCanceledEventArgs
public class SpeechRecognitionEventArgs extends RecognitionEventArgs
Defines contents of speech recognizing/recognized event.
-
-
Field Summary
-
Fields inherited from class com.microsoft.cognitiveservices.speech.RecognitionEventArgs
offset
-
Fields inherited from class com.microsoft.cognitiveservices.speech.SessionEventArgs
eventHandle
-
-
Constructor Summary
Constructors Constructor Description SpeechRecognitionEventArgs(long eventArgs)Constructs an instance of a SpeechRecognitionEventArgs object.SpeechRecognitionEventArgs(long eventArgs, boolean dispose)Constructs an instance of a SpeechRecognitionEventArgs object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpeechRecognitionResultgetResult()Specifies the recognition result.StringtoString()Returns a String that represents the speech recognition result event.-
Methods inherited from class com.microsoft.cognitiveservices.speech.RecognitionEventArgs
getRecognitionResult
-
Methods inherited from class com.microsoft.cognitiveservices.speech.SessionEventArgs
close, getSessionId
-
-
-
-
Constructor Detail
-
SpeechRecognitionEventArgs
public SpeechRecognitionEventArgs(long eventArgs)
Constructs an instance of a SpeechRecognitionEventArgs object.- Parameters:
eventArgs- recognition event args object.
-
SpeechRecognitionEventArgs
public SpeechRecognitionEventArgs(long eventArgs, boolean dispose)Constructs an instance of a SpeechRecognitionEventArgs object.- Parameters:
eventArgs- recognition event args object.dispose- dispose of the event args when done.
-
-
Method Detail
-
getResult
public final SpeechRecognitionResult getResult()
Specifies the recognition result.- Returns:
- the recognition result.
-
toString
public String toString()
Returns a String that represents the speech recognition result event.- Overrides:
toStringin classRecognitionEventArgs- Returns:
- A String that represents the speech recognition result event.
-
-