Open BiskremMuhammad opened 1 month ago
@BiskremMuhammad I have the same problem, However, I'm not using dynamic linking, and it only happens on iOS, have you come up with a solution?
@joaolobao380 It never worked with me with native module for ios, (download the model and added the folder to xcode), but i manage to solve it and load the model successfully with dynamic load, using a download utility and let the app download the model internally and unzip it. so my solution included the above code, but at the end i removed the file://
from the downloaded model path and it worked.
perfect!! Thank you!
This is what should be happening with model loading- try to load from a dynamic path, otherwise default to the app bundle. If the static loading is not working, there may be some helpful logs when running the app from XCode. What are the logs you are seeing with the static load?
Can you follow the updated README and let us know if it still crashes ?
I can confirm that with a trailing file:// it does not work
Created this PR, please let me know if it resolves your issue! https://github.com/riderodd/react-native-vosk/pull/79
Hi, I couldn't make the pods install successfully inside my ios folder, although i made all steps correctly like the README. but anyway, i tried to use the expermintal method and load the model dynamically. the app loads up in loading state until the model is downloaded, but immediately crashes when passing the downloaded folder to vosk.loadModel, here is a full code
and inside my screen i did this:
so I added the permissions to Info.plist
so the downloaded folder is correct and here is the contents from the downloaded folder as shown in the logs
and then the app crashes with this error: