public final class SpeechResult
extends java.lang.Object
Result
instance.Constructor and Description |
---|
SpeechResult(Result result)
Constructs recognition result based on
Result object. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHypothesis() |
Lattice |
getLattice()
Returns lattice for the recognition result.
|
java.util.Collection<java.lang.String> |
getNbest(int n)
Return N best hypothesis.
|
Result |
getResult()
Return Result object of current SpeechResult
|
java.util.List<WordResult> |
getWords()
Returns
List of words of the recognition result. |
public SpeechResult(Result result)
Result
object.result
- recognition result returned by Recognizer
public java.util.List<WordResult> getWords()
List
of words of the recognition result.
Within the list words are ordered by time frame.public java.lang.String getHypothesis()
public java.util.Collection<java.lang.String> getNbest(int n)
n
- number of hypothesis to returnCollection
of several best hypothesispublic Lattice getLattice()
public Result getResult()