Build 1.0_r1(from source)

android.speech.recognition
Class EmbeddedRecognizer

java.lang.Object
  extended by android.speech.recognition.EmbeddedRecognizer
All Implemented Interfaces:
Recognizer
Direct Known Subclasses:
EmbeddedRecognizerImpl

public abstract class EmbeddedRecognizer
extends Object
implements Recognizer

Embedded recognizer.


Constructor Summary
EmbeddedRecognizer()
           
 
Method Summary
abstract  void configure(String config)
          Configures the recognizer.
static EmbeddedRecognizer getInstance()
          Returns the embedded recognizer.
abstract  void resetAcousticState()
          The recognition accuracy improves over time as the recognizer adapts to the surrounding environment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface android.speech.recognition.Recognizer
createGrammar, getParameters, recognize, recognize, setListener, setParameters, stop
 

Constructor Detail

EmbeddedRecognizer

public EmbeddedRecognizer()
Method Detail

getInstance

public static EmbeddedRecognizer getInstance()
Returns the embedded recognizer.

Returns:
the embedded recognizer

configure

public abstract void configure(String config)
                        throws IllegalArgumentException,
                               FileNotFoundException,
                               IOException,
                               UnsatisfiedLinkError,
                               ClassNotFoundException
Configures the recognizer.

Parameters:
config - recognizer configuration file
Throws:
IllegalArgumentException - if config is null or an empty string
FileNotFoundException - if the specified file could not be found
IOException - if the specified file could not be opened
UnsatisfiedLinkError - if the recognizer plugin could not be loaded
ClassNotFoundException - if the recognizer plugin could not be found

resetAcousticState

public abstract void resetAcousticState()
                                 throws IllegalArgumentException
The recognition accuracy improves over time as the recognizer adapts to the surrounding environment. This method enables developers to reset the adaptation when the environment is known to have changed.

Throws:
IllegalArgumentException - if recognizer instance is null

Build 1.0_r1(from source)

Please submit a feedback, bug or feature