jamsch / expo-speech-recognition

Speech Recognition for React Native Expo projects
MIT License
114 stars 11 forks source link

[Android|iOS] "result" and "speechstart" events don't fire #52

Open WheelyWonka opened 6 hours ago

WheelyWonka commented 6 hours ago

Hello,

After following the README, I got the Android and iOS permission modals and after accepting, result nor speechstart events don't fire. The microphone is working because when I use Audio.Recording it records and read the recorded audio perfectly.

Regarding plugin's permissions in app.json, i tried to put

"plugins": [
      ...,
      "expo-speech-recognition"
],

and also

"plugins": [
      ...,
      [
            "expo-speech-recognition",
            {
                   "microphonePermission": "Allow $(PRODUCT_NAME) to use the microphone.",
                   "speechRecognitionPermission": "Allow $(PRODUCT_NAME) to use speech recognition.",
                   "androidSpeechServicePackages": ["com.google.android.googlequicksearchbox"]
            }
      ]
],

But it doesn't seem to make any differences.

Here's a bug reproduction repo: https://github.com/WheelyWonka/speech-bug-repo

Could you spot what I am missing please ?

Thank you very much :)

pthun commented 5 hours ago

I have the same issue. I can see from the small dot on the iphone in the top island that the microphone is being used for a few seconds, but no events are fired. Expo 52, new architecture.

jamsch commented 5 hours ago

Looks like there's a breaking change in SDK 52 with the eventing. I'll work on a v1 for SDK 52.

jamsch commented 2 hours ago

I've just released v1.0.0 for Expo SDK 52. Let me know if everything's working okay.