SpeechRecognizer not starting in Nexus 6 (Android API 23)

102 views
Skip to first unread message

Andrés Pérez

unread,
Oct 8, 2015, 5:54:20 PM10/8/15
to android-platform
I'm currently developing this app that utilizes the SpeechRecognition service, before the update the Speech recognition would start with no problem.
I initialize and start the service from the main thread as is required in hands-free mode, so that the user does not need to interact with the screen.

Intent speechIntent = new Intent(RecognizerIntent.ACTION_VOICE_SEARCH_HANDS_FREE);
mSpeechRecognizer = SpeechRecognizer.createSpeechRecognizer(MainActivity.this);
mSpeechRecognizer.setRecognitionListener(MainActivity.this);
mSpeechRecognizer.startListening(speechIntent);

Those lines were working no problem before the update, after I made the update I run the application again, and now the SpeechRecognizer wouldn't start (is not making the sound indicating that is listening), nor is recognizing anything. I do not know if this problem is specifically attached to the Nexus 6, but being one of the few devices currently with Android 6, and the update so recent then I do not know what is going on. 
I tried changing the RecognizerIntent to ACTION_RECOGNIZE_SPEECH but that is not working either.

I tired debugging the app and is executing the comman, but the speech recognition is not starting.
Reply all
Reply to author
Forward
0 new messages