|
JSR-043: JTAPI-1.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the methods for ASR Events.
Recognition Results are returned in an ASREvent. Results consist of one or more TokenSequences.
Inner Class Summary | |
static interface |
ASREvent.TokenSequence
Defines the methods for retrieving a single sequence of Tokens. |
Fields inherited from interface javax.telephony.media.MediaConstants |
e_OK, q_Duration, q_Standard, q_Stop |
Fields inherited from interface javax.telephony.media.ResourceConstants |
e_Disconnected, FOREVER, q_Disconnected, q_RTC, rtcc_Disconnected, rtcc_TriggerRTC, v_Forever |
Method Summary | |
java.util.Dictionary |
getContextDictionary()
Return a Dictionary containing the context parameters. |
java.lang.String |
getContextName()
Return the name of the affected context. |
int |
getNumberOfSequences()
The number of TokenSequences available. |
Symbol |
getReadiness()
Return a Symbol telling if the word has been sufficiently trained. |
Symbol |
getResultPresentation()
Return a Symbol indicating the type of results. |
java.lang.String |
getRuleExpansion()
Return the rule expansion from getRuleExpansion. |
ASREvent.TokenSequence |
getTokenSequence(int sequenceNumber)
Return one recognition sequence. |
Symbol |
getTrainingResult()
Return a Symbol describing the results of training. |
java.lang.String |
getWordName()
Return the name of the affected word. |
Methods inherited from interface javax.telephony.media.ResourceEvent |
getRTCTrigger |
Methods inherited from interface javax.telephony.media.MediaServiceEvent |
getMediaService |
Methods inherited from interface javax.telephony.media.MediaEvent |
getError, getEventID, getException, getPayload, getQualifier, getSubError, getWarning |
Method Detail |
public Symbol getResultPresentation()
ASRConstants.v_TypeI
or
ASRConstants.v_TypeII
.public int getNumberOfSequences()
public ASREvent.TokenSequence getTokenSequence(int sequenceNumber)
This presentation may be sub-optimal for Type-I results.
If sequenceNumber is out of range null is returned.
sequenceNumber
- an int specifying the sequence to be returned;
valid values are non-negative and less than getNumberOfSequences().ASR.getResults()
,
ASR.getFinalResults()
,
ASR.recognize()
public java.util.Dictionary getContextDictionary()
ASR.contextGetParameters
public java.lang.String getRuleExpansion()
ASR.getRuleExpansion()
public java.lang.String getWordName()
ASR.wordCommit()
,
ASR.wordCreate()
,
ASR.wordDeleteTraining()
,
ASR.wordDestroy()
,
ASR.wordTrain()
public java.lang.String getContextName()
ASR.contextRemove()
,
ASR.wordCommit()
,
ASR.wordCreate()
,
ASR.wordDeleteLastUtterance()
,
ASR.wordDeleteTraining()
,
ASR.wordDestroy()
,
ASR.wordTrain()
public Symbol getReadiness()
ASRConstants.v_Ready
,
ASRConstants.v_NotReady
,
ASRConstants.v_Complete
.ASR.wordTrain()
public Symbol getTrainingResult()
ASRConstants.v_Success
,
ASRConstants.v_Collision
,
ASRConstants.v_Inconsistent
,
ASRConstants.v_Noisy
.ASR.wordTrain()
|
JSR-043: JTAPI-1.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |