How can I get the recognizer to return partial results while a recognition is in process?
It is possible to configure Sphinx-4 to generate partial results, that is, to inform you periodically as to what it thinks is the best possible hypothesis so far, even before the user has stopped speaking. To get this information, add a result listener to the recognizer. Your listener will receive a result (which may or not be a final result). The hypothesis text can be extracted from the text. There is a good example of this in sphinx4/tests/live/Live.java You can control how often the result listener is fired by setting the configuration variable ‘featureBlockSize’ in the decoder. The default setting of 50 indicates that the listener will be called after every 50 frames. Since each frame represents 10MS of speech, the listener is called every 500ms.