jamsch / expo-speech-recognition

Speech Recognition for React Native Expo projects
MIT License
107 stars 10 forks source link

Cannot find native module 'ExpoSpeechRecognition', #44

Open GonzaloSP opened 3 weeks ago

GonzaloSP commented 3 weeks ago

Hi,

I have been trying to use the library with expo and I get:

ERROR Error: Cannot find native module 'ExpoSpeechRecognition', js engine: hermes [Component Stack]

Any idea what could be causing this issue?

Thanks

jamsch commented 3 weeks ago

Hi @GonzaloSP,

Since this app contains native Kotlin and Swift code and not compiled with the Expo Go app you'll need to build the app using npx expo run:ios or npx expo run:android. Just make sure that you do also configure the config plugin (editing app.json) as shown in the installation guide. If you've done this previously, make sure the changes (from the config plugin) are propagated to your android/ios folders by running npx expo prebuild --clean

GonzaloSP commented 3 weeks ago

Thank you @jamsch . Does it work in the Web version?

jamsch commented 3 weeks ago

Hi @GonzaloSP

Yes, this module supports web, however refer to the Platform Compatibility Table for more info. The additional features (such as recording, file-based transcription, and volume metering) aren't yet supported on Web however.