ccoreilly / vosk-browser

A speech recognition library running in the browser thanks to a WebAssembly build of Vosk
Apache License 2.0
364 stars 60 forks source link

Malayalam Model is not loading #70

Closed skillhacker-code closed 1 year ago

skillhacker-code commented 1 year ago

Malayalam Model is not loading , can you please fix it .

erikh2000 commented 1 year ago

Could you give more details about what you are seeing? Also, do other language models load?

skillhacker-code commented 1 year ago

I tried to load Malayalam model and English India model , both is not loading . Only Default English Model is working .

When i load other models it is showing loading for a long time and is stuck with loading button.

On Thu, Mar 2, 2023, 8:31 PM Erik Hermansen @.***> wrote:

Could you give more details about what you are seeing? Also, do other language models load?

— Reply to this email directly, view it on GitHub https://github.com/ccoreilly/vosk-browser/issues/70#issuecomment-1452013907, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQK4U73YDTRDTXM4WN574ODW2CY3BANCNFSM6AAAAAAVNDE6HE . You are receiving this because you authored the thread.Message ID: @.***>

lheine10 commented 1 year ago

I also have strange loading problems on Chrome Macbook Pro M1 with the english model.

Normal load time is 7secs, but maybe every third time the loading time is significant slower, like 35secs or 59secs. This can happen after a fresh chrome restart or after a javascript reload on the same page.

It's completely random...

lheine10 commented 1 year ago

Sometimes it fails after 60secs and this "Failed to sync file system" is shown in the console.log. Maybe the emscripten file system has sync problems loading such a big model file...

image
lheine10 commented 1 year ago

I figured out my problem: I was loading the model as a blobUrl.

The blob url changes every time and confuses the emscripten cached files in the indexDb.

The files in the indexDb are stored with filenames that are prefixed with the model url...

skillhacker-code commented 1 year ago

I am getting this error when loading malayalam model

Error: HTTP error! status: 404 download blob:https://ccoreilly.github.io/8a5ff3a2-2862-4175-b0d1-4929a4dea1d5:41 loop blob:https://ccoreilly.github.io/8a5ff3a2-2862-4175-b0d1-4929a4dea1d5:41 loop blob:https://ccoreilly.github.io/8a5ff3a2-2862-4175-b0d1-4929a4dea1d5:41 8a5ff3a2-2862-4175-b0d1-4929a4dea1d5:117:21 TypeError: result is undefined

kavyamanohar commented 1 year ago

@ccoreilly Can you please look into this?

erikh2000 commented 1 year ago

Let's remember that this vosk-browser is free open source and that Ciaran isn't paid to update it or fix bugs. It would be a shame to demoralize the maintainer by poking at him.

The ideal response to this thread is a pull request with a fix. Some troubleshooting that narrows the bug to a specific cause would be pretty solid too. Everyone in the thread is a developer.

kavyamanohar commented 1 year ago

I was tracking down the root cause, and since it was Ciaran who helped me add the model, I thought a mention would bring this issue to attention.

My sincere apologies for the mention. I want to make it clear that I didn't mean to make Ciaran personally responsible and I regret any misunderstanding that may have caused. @erikh2000, Thanks for pointing this out.

ccoreilly commented 1 year ago

Sorry for the absence, I will try to have a look tonight!

ccoreilly commented 1 year ago

Solved in #71