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

**URL:** <https://discourse.processing.org/t/if-you-dont-talk-for-a-while-speech-recognition-will-not-work/6432>\
**Category:** Libraries\
**Created:** [December 8, 2018, 9:56pm UTC](https://discourse.processing.org/t/if-you-dont-talk-for-a-while-speech-recognition-will-not-work/6432 "2018-12-08T21:56:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SL7080](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@SL7080](https://discourse.processing.org/u/SL7080)\
**Post date:** [December 8, 2018, 9:56pm UTC](https://discourse.processing.org/t/if-you-dont-talk-for-a-while-speech-recognition-will-not-work/6432/1 "2018-12-08T21:56:46Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![KfhRyan](https://avatars.discourse-cdn.com/v4/letter/k/73ab20/32.png) [@KfhRyan](https://discourse.processing.org/u/KfhRyan)\
**Post date:** [March 20, 2022, 1:24pm UTC](https://discourse.processing.org/t/if-you-dont-talk-for-a-while-speech-recognition-will-not-work/6432/2 "2022-03-20T13:24:25Z")

</div>

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](https://idmnyu.github.io/p5.js-speech/#reference) 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](https://editor.p5js.org/rsl042/sketches/9xC7ZZpFR)
