android.speech.recognition
Class EmbeddedRecognizer
java.lang.Object
android.speech.recognition.EmbeddedRecognizer
- All Implemented Interfaces:
- Recognizer
- Direct Known Subclasses:
- EmbeddedRecognizerImpl
public abstract class EmbeddedRecognizer
- extends Object
- implements Recognizer
Embedded recognizer.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmbeddedRecognizer
public EmbeddedRecognizer()
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
Please submit a feedback, bug or feature