public class StreamSpeechRecognizer extends AbstractSpeechRecognizer
live speech recognizer
clusters, context, recognizer, speechSourceProvider
Constructor and Description |
---|
StreamSpeechRecognizer(Configuration configuration)
Constructs new stream recognizer.
|
Modifier and Type | Method and Description |
---|---|
void |
startRecognition(java.io.InputStream stream) |
void |
startRecognition(java.io.InputStream stream,
TimeFrame timeFrame)
Starts recognition process.
|
void |
stopRecognition()
Stops recognition process.
|
createStats, getResult, loadTransform, setTransform
public StreamSpeechRecognizer(Configuration configuration) throws java.io.IOException
configuration
- configurationjava.io.IOException
- error occured during model loadpublic void startRecognition(java.io.InputStream stream)
public void startRecognition(java.io.InputStream stream, TimeFrame timeFrame)
stream
- input stream to processtimeFrame
- time range of the stream to processstopRecognition()
public void stopRecognition()
startRecognition(InputStream, TimeFrame)