Speech Recognition allows the Android Smartphone to recognize user's speech and returns the most likely result.
Download listen.zip to your computer and then upload to your App Inventor account
Run the listen program to observe how the speech recognition program works
Follow the video to create your own Speech Recognition program using App Inventor
Designer
3 components are used
Basic->Label
Basic->Button
Other stuff->SpeechRecognizer (This is a non visible component, that is it will not appear on the screen)
Block Editor
5 blocks are used
My Blocks->Button1->Button1.Click
My Blocks->SpeechRecognizer1->SpeechRecognizer1.GetText
My Blocks->SpeechRecognizer1->SpeechRecognizer1.AfterGettingText (name result block is automatically added)
My Blocks->SpeechRecognizer1->SpeechRecognizer1.Result
My Blocks->Label1->set Label1.Text
After SpeechRecognizer1.GetText is called, there is a time lapse before the text of the recognized speech is returned. In order to allow the phone to do other tasks (multi-tasking) instead of just waiting for the result, a SpeechRecognizer1.AfterGettingText event is provided which will activate when the returned text is available.