Package com.vivoka.vsdk.asr.utils
Class AsrResultHypothesis
java.lang.Object
com.vivoka.vsdk.asr.utils.AsrResultHypothesis
Represents a single hypothesis within an AsrResult.
Contains timestamps, confidence, and recognized items (terminals or tags).
-
Field Summary
FieldsModifier and TypeFieldDescriptionintStart time of the audio segment specific to this hypothesis.intNormalized confidence score for this hypothesis.intEnd time of the audio segment specific to this hypothesis.List of recognized items (terminals or tags) forming a hierarchical structure.The start rule (context#rule) used to generate this hypothesis.Recognized text specific to this hypothesis. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an AsrResultHypothesis object with empty values. -
Method Summary
-
Field Details
-
startRule
The start rule (context#rule) used to generate this hypothesis. Example: "CmdModel#main". -
confidence
public int confidenceNormalized confidence score for this hypothesis. Can be used to compare across multiple hypotheses. -
beginTime
public int beginTimeStart time of the audio segment specific to this hypothesis. -
endTime
public int endTimeEnd time of the audio segment specific to this hypothesis. -
text
Recognized text specific to this hypothesis. -
items
List of recognized items (terminals or tags) forming a hierarchical structure.
-
-
Constructor Details
-
AsrResultHypothesis
public AsrResultHypothesis()Constructs an AsrResultHypothesis object with empty values.
-
-
Method Details
-
getTags
Create a list of all tags specific to this hypothesis and returns them.- Returns:
- All tags specific to this hypothesis.
-
getTerminals
Create a list of all terminals specific to this hypothesis and returns them.- Returns:
- All terminals specific to this hypothesis.
-
toString
-