how to increase listening time of speech recognition (Speech to Text) android (SpeechRecognizer)


I am working on app which require speech to text. I have integrated SpeechRecognizer service. Please check below demo project code for same. Here I have tested that SpeechRecognizer stop listening automatically after 10 to 15 seconds. So I looked for following solution to increase the listening time but did not worked.

I also posted same thing on stack over flow :