Class AsrResultItem

java.lang.Object
com.vivoka.vsdk.asr.utils.AsrResultItem
Direct Known Subclasses:
AsrResultTag, AsrResultTerminal

public abstract class AsrResultItem extends Object
Abstract base class representing a recognized item in an ASR hypothesis. This item can be either a terminal (spoken word) or a tag (semantic group).
  • Field Details

    • type

      public String type
      The type of item: either "terminal" or "tag".
    • confidence

      public int confidence
      Confidence of the item. Defaults to -1 if not explicitly set.
    • beginTime

      public int beginTime
      Start timestamp (in ms) of the recognized item in the audio stream.
    • endTime

      public int endTime
      End timestamp (in ms) of the recognized item in the audio stream.
  • Constructor Details

    • AsrResultItem

      public AsrResultItem()
  • Method Details