-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load model from the another path #46
Comments
Hi @ArkaitzSKR, For the UUID generation, take a look at the build.gradle task that handle this, it may help: Maybe by changing the path you can handle a different storage location. The library should work with all models, no matter the size. If it's not, it may be related to device capacity ? Maybe if you could share the error and what you've already tried, we may try to think about a fix together :) |
I'm hoping to download from remote and unzip the files into the DocumentDirectoryPath and then load the model. Is this also possible? |
I really don't know, the only way is try. Generally and from my only and personaly experience, Android is more permissive with this type of approach than iOS. If you succeed in your tries feel free to let us know, that would be nice to explain how to do it in the docs ! |
I couldn't get it to work on iOS, i'll check on Android soon. Thanks! |
Hey, @vidman22 I want to do a similar thing of downloading a zip from a CDN, unzipping in react native and then loading the model in vosk. Were you able to make it work with this vosk api? Or come up with a work around? |
@ShristiC Hello, ` init(name: String) throws {
|
This is great, can do some further testing to determine robustness (also not a Swift developer). Does it work with android as well? Additional question. Did you use react-native-fs to download a .zip and react-native-zip-archive to unzip, then store to DocumentDirectoryPath? |
Yes, i use react-native-fs and react-native-zip-archive to store the model in the DocumentDirectoryPath and it should work on android as well. |
Thanks for the help @vidman22 ! I have opened a PR with the changes and tested the flow in Android and iOS. |
Hello!
Is it possible to use the library by importing the model instead of from the assets folder from a different location?
We are trying to use the library with 4.5GB models and by entering it in the assets it is impossible to compile.
In the tests we have carried out we get an error with a file called uuid. This file is generated by Android Studio when compiling the assets and contains, as the name indicates, a uuid. We have tried putting a uuid file in the external storage in the same folder where the model is located but it still gives us the same error.
Is there any limit on the size of the model?
Thanks in advance and greetings!
The text was updated successfully, but these errors were encountered: