I have a educational game on Android 4 where we do some animation on "canvas". I want to add voice command to it. You have to use the "speech recognition" api of Android, get the list of words spoken, compare with a list of words and using TTS engine read the appropriate words.
For example, if the player says "Who are you?" the code should understand this (which is quite simple because this exists in the Android) and compare it with a list of given texts. Then, from a long recorded mp3 file it should get parts such as "My", "name", "is" and "John", add them and read it.
Meanwhile it should trigger a small animation on the canvas.
All the graphics, animation code etc are already done. What is required is the use of speech recognition, listing down the words and adding audio files.
It should be language selectable (This is an already existing function of Android anyway)
The code must be as simple as possible. There are several sample codes on the Internet. Nothing new but I don't want complex algorhytms.