Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I get the recognizer to return partial results while a recognition is in process?

0
Posted

How can I get the recognizer to return partial results while a recognition is in process?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123