csdcorp / speech_to_text

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

Library doesn’t work on iOS 16.x.x both simulator and real device #448

Closed siiimaay closed 6 months ago

siiimaay commented 7 months ago

Hi,

Speech to text is not functioning in specific versions It’s giving below messages when iOS version 16.x.x both real device and simulators.

Below what I get as error messages

flutter: Error initializing speech recognition: SpeechRecognitionError msg: error_listen_failed, permanent: true
flutter: status: done => from the onStatus() function
flutter: status: done => from the onStatus() function
flutter: Error initializing speech recognition: SpeechRecognitionError msg: error_no_match, permanent: true

I tried already readme suggestion which is enabling the spoken contents and voices.

Appreciate your help here. Thank you

sowens-csd commented 7 months ago

Is this with the example app or your own code?

siiimaay commented 7 months ago

Hey Stephen,

I initially got the error from my code but now tried with an example code and results same Here are the logs:

flutter: 2023-10-23T14:58:41.341809 Received listener status: notListening, listening: false flutter: 2023-10-23T14:58:41.342610 Received error status: SpeechRecognitionError msg: error_listen_failed, permanent: true, listening: false flutter: 2023-10-23T14:58:41.342853 Received listener status: done, listening: false flutter: 2023-10-23T14:58:41.368835 Received listener status: done, listening: false flutter: 2023-10-23T14:58:41.369227 Received error status: SpeechRecognitionError msg: error_no_match, permanent: true, listening: false

If it helps, leaving couple of details -- Language is English(United States) -- Exact version I tried now iOS 16.4 -- In real device, it doesn’t work for version 16.6.4 Also, it works v17.0.3 and v15 variations without any issue

sowens-csd commented 7 months ago

So error_no_match means that it thinks it didn't hear any words. That's odd because lots of other things have to be working properly for it to get to error_no_match. Have you tried it with a headset?

sowens-csd commented 6 months ago

I just tried the sample app on iOS 16.7.1 and it worked correctly. Not sure what's happening in your copy but it doesn't appear to be a generic iOS 16 issue. I suppose it could be a 16.6.x issue?

sowens-csd commented 6 months ago

Any updates on this?

siiimaay commented 6 months ago

Hey, sorry for late response Since this happens in 16.4 and 16.6 as well, maybe lower version from 16.7.x might be the problematic ones, when I tried sample app in simulator still not works for v16.4. Do you have any suggested workaround for these versions? if not, will close the ticket and assume these versions have unknown problem.

sowens-csd commented 6 months ago

Sorry, I missed this response. No, that's really bizarre, sorry, I don't have any suggested work arounds.