android,speech-recognition,voice-recognition,recognizer-intent
According to the documentation speech recognizer must be invoked from the main thread. You are trying to start the recognizer in onInit callback from TTS engine. This is not a main thread, tts engine callback is executed in a separate thread. You need to run the ASR initializer in the...
android,speech-recognition,recognizer-intent
As a work around I use the partialResults returned in onPartialResults(). In the returned bundle "SpeechRecognizer.RESULTS_RECOGNITION" has all the terms minus the last term and "android.speech.extra.UNSTABLE_TEXT" has the last missing recognized term.
android,speech-recognition,recognizer-intent
Your issue is that you are testing if an ArrayList == a String, when it can't possibly (an ArrayList of type String contains multiple strings) Instead of: if ((result).equals("orange")) {} Try: if ((result).contains("orange")) {} This code will look through every index of the ArrayList and determine if any of the...
android,speech-recognition,speech,recognizer-intent
try looking at a couple other api's.... speech demo : has source here and is discussed here and operated on CLI here you could use the full duplex google api ( its rate capped at 50 per day ) Or if you like that general idea check ibm's watson discussed...