public class SpokenInputEvent extends JVoiceXMLEvent
SpokenInput implementation.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EVENT_TYPE
The detail message.
|
static int |
INPUT_STARTED
The user has started to speak.
|
static int |
RECOGNITION_STARTED
The recognition process has been started.
|
static int |
RECOGNITION_STOPPED
The recognition process has ended.
|
static int |
RESULT_ACCEPTED
The user made an utterance that matched an active grammar.
|
static int |
RESULT_REJECTED
The user made an utterance that did not match an active grammar.
|
| Constructor and Description |
|---|
SpokenInputEvent(SpokenInput output,
java.lang.String id)
Constructs a new object.
|
SpokenInputEvent(SpokenInput output,
java.lang.String detailedType,
java.lang.String id)
Constructs a new object.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getEventType()
Get the event type of this event.
|
java.lang.String |
getSessionId()
Retrieves the session id.
|
SpokenInput |
getSource()
Retrieves the object that caused the event.
|
getMessage, isTypepublic static final java.lang.String EVENT_TYPE
public static final int RECOGNITION_STARTED
public static final int RECOGNITION_STOPPED
public static final int INPUT_STARTED
public static final int RESULT_ACCEPTED
public static final int RESULT_REJECTED
public SpokenInputEvent(SpokenInput output, java.lang.String detailedType, java.lang.String id) throws java.lang.IllegalArgumentException
output - object that caused the event.detailedType - detailed messageid - the session idjava.lang.IllegalArgumentException - if an illegal event type is passed.public SpokenInputEvent(SpokenInput output, java.lang.String id) throws java.lang.IllegalArgumentException
output - object that caused the event.id - the session idjava.lang.IllegalArgumentException - if an illegal event type is passed.public final SpokenInput getSource()
public final java.lang.String getSessionId()
public java.lang.String getEventType()
getEventType in class JVoiceXMLEvent