I use RecognizerIntent and implement the RecognitionListener and implement all of its call back methodsas to do voice commands. And I try to adjust the parameters EXTRA_SPEECH_INPUT_MINIMUM_LENGTH_MILLIS,EXTRA_SPEECH_INPUT_POSSIBLY_COMPLETE_SILENCE_LENGTH_MILLIS and EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS to decrease the listen time but it seems not work. How can I do ?
Another question is about the recognition speed. I just have five voice commands in my system. But I need to pass and wait for the recognition result every time. Can I preprocess something or other methods to accelerate the recognition speed?
For the task you described it make sense to use closed-dictionary ASR system, such as pocketsphinx-android. You will be able to fine-tune pre- and post-speech wait intervals as well as speed-up the decoding as the recognition happens on-board rather than going back and forth to the cloud.