public final class RecognitionEvent extends SpokenInputEvent implements InputEvent
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DETAIL
The unsupported element.
|
EVENT_TYPE, INPUT_STARTED, RECOGNITION_STARTED, RECOGNITION_STOPPED, RESULT_ACCEPTED, RESULT_REJECTED| Constructor and Description |
|---|
RecognitionEvent(SpokenInput input,
java.lang.String sessionId,
RecognitionResult recognitionResult)
Constructs a new event with the event type as its detail message.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getEventType()
Get the event type of this event.
|
java.lang.Object |
getInputResult()
Retrieves the result of the input process.
|
RecognitionResult |
getRecognitionResult()
Retrieves the result of the recognition process.
|
getSessionId, getSourcegetMessage, isTypepublic static final java.lang.String DETAIL
public RecognitionEvent(SpokenInput input, java.lang.String sessionId, RecognitionResult recognitionResult)
input - the input initiating this eventsessionId - the session idrecognitionResult - Result of the recognition process.public java.lang.String getEventType()
getEventType in class SpokenInputEventpublic RecognitionResult getRecognitionResult()
public java.lang.Object getInputResult()
getInputResult in interface InputEvent