Class TranslationRecognitionEventArgs
- java.lang.Object
-
- com.microsoft.cognitiveservices.speech.SessionEventArgs
-
- com.microsoft.cognitiveservices.speech.RecognitionEventArgs
-
- com.microsoft.cognitiveservices.speech.translation.TranslationRecognitionEventArgs
-
- Direct Known Subclasses:
TranslationRecognitionCanceledEventArgs
public class TranslationRecognitionEventArgs extends RecognitionEventArgs
Defines payload of translation recognizing/recognized events.
-
-
Field Summary
-
Fields inherited from class com.microsoft.cognitiveservices.speech.RecognitionEventArgs
offset
-
Fields inherited from class com.microsoft.cognitiveservices.speech.SessionEventArgs
eventHandle
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TranslationRecognitionResultgetResult()Specifies the recognition result.StringtoString()Returns a String that represents the translation recognition result event.-
Methods inherited from class com.microsoft.cognitiveservices.speech.RecognitionEventArgs
getRecognitionResult
-
Methods inherited from class com.microsoft.cognitiveservices.speech.SessionEventArgs
close, getSessionId
-
-
-
-
Method Detail
-
getResult
public final TranslationRecognitionResult getResult()
Specifies the recognition result.- Returns:
- the recognition result.
-
toString
public String toString()
Returns a String that represents the translation recognition result event.- Overrides:
toStringin classRecognitionEventArgs- Returns:
- A String that represents the translation recognition result event.
-
-