hp.telephony.media
Interface ResultAlternative


public interface ResultAlternative

This Interface allows accessing an word recognized alternative by an ASR engine.


Method Summary
 int getConfidence()
          return the confidence of the interpretation
 Map getExtensions()
          return the extensions of the interpretation as a Map -->
 ASRParsedRule[] getParsedRule()
          Return an ASRParsedRule object that allows accessiong additional such as tags, grammar name, etc.
 ResultToken[] getPhrase()
          access the recongition result alternative as a table of ResultToken the Index grows from the more likely (index 0) to the less likely.
 int getUtteranceOffsetBegin()
          return start point of the utterance in millisecond
 int getUtteranceOffsetEnd()
          return end point of the utterance in millisecond
 

Method Detail

getPhrase

public ResultToken[] getPhrase()
access the recongition result alternative as a table of ResultToken the Index grows from the more likely (index 0) to the less likely.


getParsedRule

public ASRParsedRule[] getParsedRule()
Return an ASRParsedRule object that allows accessiong additional such as tags, grammar name, etc.


getUtteranceOffsetBegin

public int getUtteranceOffsetBegin()
return start point of the utterance in millisecond


getUtteranceOffsetEnd

public int getUtteranceOffsetEnd()
return end point of the utterance in millisecond


getConfidence

public int getConfidence()
return the confidence of the interpretation


getExtensions

public Map getExtensions()
return the extensions of the interpretation as a Map -->