How to stop speech recognition with a button on Android?-ThrowExceptions

Exception or error:

I currently use RecognizerIntent to perform STT on an Android app. When a user clicks a button, the Google Voice Input screen pops up, the user can speak and it is transcribed. When it is quiet enough, the popup shuts and the input is processed.

However, the popup will not shut / process the results if there is still some background noise (despite having transcribed the necessary words).
If I click the screen, the popup disappears, but the results are not processed.

Is there a way to click the popup window (the microphone that pops up) to force the app to stop recording and process the results it has already transcribed?

Thank you in advance!

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *