I want to change the time before the speechresult is closed.
For example, If I say "Hello", and then wait a second before saying "Hi", they will be 2 separate speech results. If I say one right after the other, it works fine. I want sphinx to not stop the speechresult until 3 seconds of no speech go by.
I tried using a thread with a countdown, and appending speechresult.getHypothesis() until the countdown got to 0 (and there was still no text), but it was not working.
P.S: Sorry for my lack of code, I just used the default code here: https://cmusphinx.github.io/wiki/tutorialsphinx4/
(Java CMU Sphinx 4 version pre-alpha 5)
Thanks so much for the help!
found a nicer solution...
again, if you have something better, please post it
EDIT: totalResult is a speech builder, and speech is LiveSpeechRecognition