-
Notifications
You must be signed in to change notification settings - Fork 1
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
MacOs #13
Comments
What version of Chrome/Safari are you using? |
Chrome - 128.0 |
I'm using createWritable to write in OPFS, having like 75% browser support (bad, idk why I did this). |
Yes, maybe that was the reason it didnt work. Anyway - a greate work, Msqr1, I like your variant of Vosk very much, thank you for sharing your creation! |
I used SyncAccessHandle in a separate worker, which works but will create an extra worker for OPFS. I tried my best to integrate with the WASM workers from Emscripten, but it's literally impossible. Could you verify that this is fixed in the latest commit before I tag a new version? @YuryKonvpalto |
I don't have any Apple Device :( |
Hi Msqr1! Sorry for a delay with replay, - have had some busy days. |
I have checked it on iphone SE2020 and iphone 14 - even your exaple with mic doesnt work. I think its related to the Safari and iphone itself, - how they are managing browser filesystem. I have a chrome on iphone, but it fails either (iphone puts some restrictions on external browsers too). I can tell you also, that I've tried vosk-browser - it works on iphone, because probably it loads models to cache. |
Vosk browser uses IndexedDB to store models, which has better support than OPFS, but slower read/write. Could you tell me how you test HTML on an iPhone? How do you make Safari render a local HTML file? I read some docs that said Safari has a "web inspector" setting that enable DevTools, maybe you could try that. |
There are a inscriptoion in the textfield - "model is loaded". It appears as soon as model is loaded to the comp. On iphone there is an inscription "model tries to load itself" - it appears before await module.createModel("./....) - Look the code below:
So, if modelRu succesfully has been loaded, it appears "model is loaded" inthe textfield. And its really happens on the desktop. For testing I use ngrok. |
Could you check once more? I switched to use Cache API instead of OPFS. @YuryKonvpalto |
Can you confirm please 🙏? I'm waiting on your feedback to release a new version! @YuryKonvpalto |
Hi msqr1, it works very well on Desktop (end even maybe a bit faster, atleast thats like it seems). it prints - "test" - so before loading a model it looks fine, Look at code below.
htmlTextArea.innerHTML = 'model tries to load itself'; |
Thank you for staying with me after all of this. So now it doesn't get past loadVosklet? I tested, and it worked on a Mac and Android, a Windows, on Firefox, Edge, and Chrome and additionally on Safari for the Mac. Literally everything except iOS. Also, I ported Kaldi now with openBLAS (original approach) instead of the reference one, which increased recognition performance by around 20% over the old version. @YuryKonvpalto |
Hi msqr1.
I have tested simple app with mic on Android phone - it loads well and works.
On the other hand, I tried to run app on iphone (tried both Safari and Chrome) and it seems something is blocking the model to be downloaded to iphone or couldnt be started. Its stucks on (model = await module.createModel(......)
So the same code works fine with android (Galaxy phone with chrome).
Seems like iphone's private file system works somehow different, or maybe closed at all for downloads,
Do you have ny ideas gow to circumvent it?
The text was updated successfully, but these errors were encountered: