public interface RecognitionResult
| Modifier and Type | Method and Description |
|---|---|
float |
getConfidence()
Retrieves the whole utterance confidence level for this interpretation
from
0.0 - 1.0. |
java.lang.String |
getMark()
Retrieves the name of the mark, that has been reached while playing back
an SSML formatted document.
|
org.jvoicexml.xml.srgs.ModeType |
getMode()
Retrieves the mode in which user input was provided: dtmf or voice.
|
java.lang.Object |
getSemanticInterpretation(DataModel model)
Retrieves the semantic interpretation of the utterance.
|
java.lang.String |
getUtterance()
Retrieves the result as a single string.
|
java.lang.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.
|
void |
setMark(java.lang.String mark)
Sets the mark reached that is reached while playing back an SSML
formatted document.
|
java.lang.Object getSemanticInterpretation(DataModel model) throws SemanticError
model - the employed data modelSemanticError - error creating the semantic interpretationjava.lang.String getUtterance()
null if no
result is given or the result is not accepted.java.lang.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().
org.jvoicexml.xml.srgs.ModeType getMode()
boolean isAccepted()
true if the result is accepted.void setMark(java.lang.String mark)
mark - Name of the mark.java.lang.String getMark()