Skip to first unread message

Danilo Brito

unread,
Jul 25, 2018, 11:03:45 AM7/25/18
to MIT App Inventor Forum

is there any way to hide the google voice recognition box? I want to control my cell phone from far away so I do not have to press the center of the screen when voice recognition fails.

SteveJG

unread,
Jul 25, 2018, 11:16:22 AM7/25/18
to MIT App Inventor Forum
You cannot hide the box Danilo using Blocks.  The example here might allow you to do what you want to do.  The example uses a Clock to restart the Voice Recognizer    https://groups.google.com/forum/#!searchin/mitappinventortest/dictation%7Csort:date/mitappinventortest/YSFDMbgcLHg/rLau2cJYBgAJ  

Does this solution work for you Danilo?  It does not hide the box but it appears it might allow Speech Recognition to continue by providing a kind of continuous dictation..

Regards,
Steve


Danilo Brito

unread,
Jul 25, 2018, 11:33:33 AM7/25/18
to MIT App Inventor Forum
But when it appears "I do not understand" it does not automatically close / open, being necessary to tap the screen to recognize again.

SteveJG

unread,
Jul 25, 2018, 12:47:45 PM7/25/18
to MIT App Inventor Forum
This what can be done with App Inventor to control the Speech Recognizer 

The" I do not understand" is a new feature introduced by Google to improve performance. Unfortunately, when that icon displays, App Inventor cannot capture it.  Sorry, this once upon a time worked when the recognizer did not recognize; the example no longer works for that instance.  There is no way to get past it other than touching the icon. You cannot do everything with the Speech Recognizer professional developers do with Android Studio while using App Inventor 2 .

The pop up can be hidden if you program your app using Java and Android Studio or to develop a Speech Recognizer extension for AI2 that would hide the pop up. I am not aware of any extension that can help.  Someone else might comment.


Your options are to code your app using the Java based free Android Studio.  It can handle the Speech Recognizer much, much better than App Inventor can.

Do you have a sense of humor?   Get a very long stylus and poke your screen (which might work).  or a short stylus attached to a yard stick.  Sorry, you are not going to be able to make the SpeechRecognizer work as you would like unless MIT eventually includes a block to recognize when the 'I do not understand' is evoked.

One possible solution is to always speak in a loud clear voice.  My tablet, that has a very good cpu, recognizes about 95% of what I say to it.  It is very friendly.  However, my phone is a jerk.  It only understands me about 60 to 70% of the time.  Both devices have difficulty understanding my wife (really); she thinks it is because the recognizer is a lot like me.
The speech recognizer is very fussy, so your only defense is to talk clearly, with an even cadence in short sentences or phrases.



Regards,
Steve


Chris Ward

unread,
Jul 25, 2018, 1:29:38 PM7/25/18
to MIT App Inventor Forum
Hello Danilo

In fact, you can't do much more with Google Speech using Android Studio or any other development platform because it's rolled-up as a contained service over the internet (recognition is performed on the Google Servers). So, just like App Inventor, other apps that use the service have to live with aspects of it that could be better as there are no options to change the basics. I would like the box to be hidden after a second or two, so that Users can read text that the box obscures. Sadly, things like that seem to have been ignored or not thought of at the time of development.




Danilo Brito

unread,
Jul 26, 2018, 6:48:06 AM7/26/18
to MIT App Inventor Forum
man the best comment was your kkkkkk
thank you very much for the tips
today I'm going to download the android studio and develop for it. thank you!

SteveJG

unread,
Jul 26, 2018, 9:21:38 AM7/26/18
to MIT App Inventor Forum
Good luck Danilo.   Here are some links to get you started with what can be done with Android Studio and speech recognition  https://stackoverflow.com/questions/tagged/speech-recognition 


Be aware, Android Studio is not simple.  Google does provide tutorials.
Reply all
Reply to author
Forward
0 new messages