If you don't talk for a while, speech recognition will not work

I use p5.speech library to do continuous recognition in my project. The problem is the recognition will not work if I don’t talk for a while. How could I active it again?

I know this is an old question, but I am running into this exact problem. p5.speechRec appears to stop listening after about 30 seconds of silence. The documentation Properties continuous states that the continuous property is unreliable, and suggest a meta-refresh on the page. That kinda of works, but it restarts the canvas which I don’t. I there a better way to restart the listening without interfering with the canvas ? My test code my p5.js test code