public class LiveSpeechRecognizer extends AbstractSpeechRecognizer
clusters, context, recognizer, speechSourceProvider
Constructor and Description |
---|
LiveSpeechRecognizer(Configuration configuration)
Constructs new live recognition object.
|
Modifier and Type | Method and Description |
---|---|
void |
startRecognition(boolean clear)
Starts recognition process.
|
void |
stopRecognition()
Stops recognition process.
|
createStats, getResult, loadTransform, setTransform
public LiveSpeechRecognizer(Configuration configuration) throws java.io.IOException
configuration
- common configurationjava.io.IOException
- if model IO went wrongpublic void startRecognition(boolean clear)
clear
- clear cached microphone datastopRecognition()
public void stopRecognition()
startRecognition(boolean)