Closed uzuki-P closed 6 years ago
It's an error of the underlying Android SpeechRecognizer. So it's not a bug of the library itself.
https://developer.android.com/reference/android/speech/SpeechRecognizer.html#ERROR_AUDIO
On which Android version does this happen? It's a physical device or an emulator? Also, steps to reproduce?
It's Android 6.0.1 on physical device. I just found the fix. It's look like the Google App also need the microphone permission granted.
Thanks for the fast response :smiley:
Actually, you don't have to request any permission, because it's all done through the Google App. Glad you've found the solution!
@uzuki-P How we enable same permission android STB, I am facing the same issue , please help me
That error depends on the Google App which is invoked by the library. Make sure you granted permissions to that before you use it.
I got an error that the speech just decided to finish it self. The log error not even showing if I'm not adding
Logger.setLogLevel(Logger.LogLevel.DEBUG);
Logcat with 'speech' regex:
SpeechDialog Activity:
I already granted the RECORD_AUDIO permission.