|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RecognitionResult
Result of the recognition process.
| Method Summary | |
|---|---|
float |
getConfidence()
Retrieves the whole utterance confidence level for this interpretation from 0.0 - 1.0. |
String |
getMark()
Retrieves the name of the mark, that has been reached while playing back an SSML formatted document. |
ModeType |
getMode()
Retrieves the mode in which user input was provided: dtmf or voice. |
Object |
getSemanticInterpretation()
Retrieves the semantic interpretation of the utterance. |
String |
getUtterance()
Retrieves the result as a single string. |
String[] |
getWords()
Retrieves an array of the distinct words in getUtterance(). |
float[] |
getWordsConfidence()
Retrieves the vector with the confidence level of each word for this interpretation from 0.0 - 1.0. |
boolean |
isAccepted()
Checks if this result is accepted. |
boolean |
isRejected()
Checks if this result is rejected. |
void |
setMark(String mark)
Sets the mark reached that is reached while playing back an SSML formatted document. |
| Method Detail |
|---|
Object getSemanticInterpretation()
String getUtterance()
null if
no result is given or the result is not accepted.String[] getWords()
getUtterance().
The length of the returned array must match the size of the array
returned by getWordsConfidence().
float getConfidence()
0.0 - 1.0.
A confidence level of 0.0 denotes the lowest confidence
and a level of 1.0 denotes the highest confidence.
float[] getWordsConfidence()
0.0 - 1.0.
A confidence level of 0.0 denotes the lowest confidence
and a level of 1.0 denotes the highest confidence.
The length of the returned array must match the size of the array
returned by getWords().
ModeType getMode()
boolean isAccepted()
true if the result is accepted.boolean isRejected()
true if the result is rejected.void setMark(String mark)
mark - Name of the mark.String getMark()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||