Asterisk-Java

org.asteriskjava.fastagi
Class SpeechRecognitionResult.SpeechResult

java.lang.Object
  extended by org.asteriskjava.fastagi.SpeechRecognitionResult.SpeechResult
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
SpeechRecognitionResult

public static class SpeechRecognitionResult.SpeechResult
extends java.lang.Object
implements java.io.Serializable

Container class for recognized speech.

See Also:
SpeechRecognitionResult.getAllResults(), Serialized Form

Method Summary
 java.lang.String getGrammar()
          Returns the grammar.
 int getScore()
          Returns the confidence score.
 java.lang.String getText()
          Returns the text.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getScore

public int getScore()
Returns the confidence score. This is an integer between 0 (lowest confidence) and 1000 (highest confidence).

Returns:
the confidence score.

getText

public java.lang.String getText()
Returns the text. This is the text that was recognized by the speech engine.

Returns:
the text

getGrammar

public java.lang.String getGrammar()
Returns the grammar. This is the grammar that was used by the speech engine.

Returns:
the grammar

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Asterisk-Java

Copyright © 2004-2009 Stefan Reuter. All Rights Reserved.