public class AbstractSpeechRecognizer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ClusteredDensityFileData |
clusters |
protected Context |
context |
protected Recognizer |
recognizer |
protected SpeechSourceProvider |
speechSourceProvider |
Modifier | Constructor and Description |
---|---|
|
AbstractSpeechRecognizer(Configuration configuration)
Constructs recognizer object using provided configuration.
|
protected |
AbstractSpeechRecognizer(Context context) |
Modifier and Type | Method and Description |
---|---|
Stats |
createStats(int numClasses) |
SpeechResult |
getResult()
Returns result of the recognition.
|
void |
loadTransform(java.lang.String path,
int numClass) |
void |
setTransform(Transform transform) |
protected final Context context
protected final Recognizer recognizer
protected ClusteredDensityFileData clusters
protected final SpeechSourceProvider speechSourceProvider
public AbstractSpeechRecognizer(Configuration configuration) throws java.io.IOException
configuration
- initial configurationjava.io.IOException
- if IO went wrongprotected AbstractSpeechRecognizer(Context context) throws java.io.IOException
java.io.IOException
public SpeechResult getResult()
null
if there is no result, e.g., because the
microphone or input stream has been closedpublic Stats createStats(int numClasses)
public void setTransform(Transform transform)
public void loadTransform(java.lang.String path, int numClass) throws java.lang.Exception
java.lang.Exception