speech_recognition
speech_recognition copied to clipboard
_platformCallHandler call speech.onError 9 issue
Speech error while pressing Listening button "_platformCallHandler call speech.onError 9".
I/flutter ( 2933): _platformCallHandler call speech.onSpeechAvailability false I/flutter ( 2933): _platformCallHandler call speech.onError 9 I/flutter ( 2933): Unknowm method speech.onError
I was having this same issue. I have found that even though I was setting the permissions for the "RECORD_AUDIO" in the AndroidManifest.xml, I was still getting this error. By using the below "permissions" plugin, I was able to prompt and accept the "RECORD_AUDIO" permission at run time on the first start-up of the app only, which worked perfectly. Also see my sample app using the speech_recognition and permissions plugins to make this work. I hope this helps.
Permissions plugin: https://pub.dartlang.org/packages/permission#-readme-tab-
My Sample speech_recognition and permissions app: https://github.com/scottwinter/speech_to_text_test
I had a same issue. To solve this I just gave microphone access permission to my application. (setting->application permission->on microphone permission)