speech_recognition icon indicating copy to clipboard operation
speech_recognition copied to clipboard

_platformCallHandler call speech.onError 9 issue

Open MuhammamdArslanKhan opened this issue 6 years ago • 2 comments

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

MuhammamdArslanKhan avatar Dec 07 '18 21:12 MuhammamdArslanKhan

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

scottwinter avatar Dec 20 '18 06:12 scottwinter

I had a same issue. To solve this I just gave microphone access permission to my application. (setting->application permission->on microphone permission)

gitpratiksha avatar Jul 31 '20 15:07 gitpratiksha