csdcorp / speech_to_text

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

Error 7 not reported #527

Open bsutton opened 3 months ago

bsutton commented 3 months ago

On android, if the engine fails to recognize text I'm seeing the following error in the logs:

D/SpeechToTextPlugin(31353): Error 7 after start at 1909 -2.0 / 10.0

My understanding is that this means that the engine was unable to recognize the speech.

The problem is that this error is not reported via the api so the best I can do is report blank text to the user.

I would prefer to be able to trap this error and report something more useful to the user: e.g. Sorry I didn't understand that.

So is there someway to surface this error via the api?