csdcorp / speech_to_text

A Flutter plugin that exposes device specific text to speech recognition capability.
BSD 3-Clause "New" or "Revised" License
374 stars 230 forks source link

Error 9 on Android Emulator #531

Closed zerowu49 closed 1 month ago

zerowu49 commented 2 months ago

Error Message:

D/SpeechToTextPlugin(12135): Notify status:listening D/SpeechToTextPlugin(12135): Start listening done [log] Received listener status: listening, listening: true D/SpeechToTextPlugin(12135): In RecognizerIntent apply D/SpeechToTextPlugin(12135): put model D/SpeechToTextPlugin(12135): put package D/SpeechToTextPlugin(12135): put partial D/SpeechToTextPlugin(12135): put languageTag D/SpeechToTextPlugin(12135): Error 9 after start at 130 1000.0 / -100.0 [log] Received listener status: notListening, listening: false D/SpeechToTextPlugin(12135): Notify status:notListening [log] Received listener status: done, listening: false [log] Received error status: SpeechRecognitionError msg: error_permission, permanent: true, listening: false

What is this mean? I already state all of the requirement and the example works correctly on the device. But, when I tried to apply in my project, it shows this error.

sowens-csd commented 1 month ago

If the example app is working properly on the device then it sounds like your app either does not have the required permissions in the manifest or the user rejected the request on the device.