Python Speech recognition stops after first try
I am using the speech recognition library to detect speech. I am using streamlit for the interface. A button triggers the speech recognition process. The first time it works fine.The audio is recognized and transcribed.
When I press the button a second time, it keeps running/listening