alphacep / vosk-api

Offline speech recognition API for Android, iOS, Raspberry Pi and servers with Python, Java, C# and Node
Apache License 2.0
7.38k stars 1.04k forks source link

A/VoskAPI: Check():online-ivector-feature.cc:81) Assertion failed: (global_cmvn_stats.NumRows() == 2) #1410

Closed WeMakeBest closed 11 months ago

WeMakeBest commented 12 months ago

I am using Vosk Android library which was working great few days ago suddenly it stopped working and showing this errors in logs. A/VoskAPI: Check():online-ivector-feature.cc:81) Assertion failed: (global_cmvn_stats.NumRows() == 2)

And this was logs when loading the library and model. I/VoskAPI: ReadDataFiles():model.cc:213) Decoding params beam=13 max-active=7000 lattice-beam=6 I/VoskAPI: ReadDataFiles():model.cc:216) Silence phones 1:2:3:4:5

I/VoskAPI: RemoveOrphanNodes():nnet-nnet.cc:948) Removed 1 orphan nodes. I/VoskAPI: RemoveOrphanComponents():nnet-nnet.cc:847) Removing 2 orphan components. I/VoskAPI: Collapse():nnet-utils.cc:1488) Added 1 components, removed 2

I/VoskAPI: CompileLooped():nnet-compile-looped.cc:345) Spent 0.0935929 seconds in looped compilation. I/VoskAPI: ReadDataFiles():model.cc:248) Loading i-vector extractor from /storage/emulated/0/Android/data/me.resight.app/files/vosk-model-ar-0.22-linto-1.1.0/ivector/final.ie

I/VoskAPI: ComputeDerivedVars():ivector-extractor.cc:183) Computing derived variables for iVector extractor

I/VoskAPI: ComputeDerivedVars():ivector-extractor.cc:204) Done. I/VoskAPI: ReadDataFiles():model.cc:278) Loading HCLG from /storage/emulated/0/Android/data/me.resight.app/files/vosk-model-ar-0.22-linto-1.1.0/graph/HCLG.fst I/VoskAPI: ReadDataFiles():model.cc:293) Loading words from /storage/emulated/0/Android/data/me.resight.app/files/vosk-model-ar-0.22-linto-1.1.0/graph/words.txt I/VoskAPI: ReadDataFiles():model.cc:302) Loading winfo /storage/emulated/0/Android/data/me.resight.app/files/vosk-model-ar-0.22-linto-1.1.0/graph/phones/word_boundary.int I/VoskAPI: ReadDataFiles():model.cc:309) Loading subtract G.fst model from /storage/emulated/0/Android/data/me.resight.app/files/vosk-model-ar-0.22-linto-1.1.0/rescore/G.fst I/VoskAPI: ReadDataFiles():model.cc:311) Loading CARPA model from /storage/emulated/0/Android/data/me.resight.app/files/vosk-model-ar-0.22-linto-1.1.0/rescore/G.carpa

Let me know what's wrong.

Thanks

nshmyrev commented 12 months ago

We didn't change anything, maybe something external changed data files on sdcard. Remove model files and load them again please.

WeMakeBest commented 12 months ago

I tried in multiple devices and even tried 2 models and removed everything again extracted the mode still the same

nshmyrev commented 12 months ago

What other model did you try beside vosk-model-ar-0.22-linto-1.1.0 ? What is the logcat for other model then?

WeMakeBest commented 12 months ago

English model. Logcat is same as ar model

nshmyrev commented 12 months ago

Logcat for different model must be different. Please provide an updated logcat.

WeMakeBest commented 12 months ago

A/VoskAPI: Check():online-ivector-feature.cc:81) Assertion failed: (global_cmvn_stats.NumRows() == 2)

Issue was the same on it just the file name changes

nshmyrev commented 12 months ago

Ok, share the contents of the folder /storage/emulated/0/Android/data/me.resight.app/files/vosk-model-ar-0.22-linto-1.1.0/ivector

WeMakeBest commented 12 months ago

image

nshmyrev commented 12 months ago

Ok, please provide full logcat output as a file.

WeMakeBest commented 12 months ago

vosk_errors_logcat.txt

nshmyrev commented 12 months ago

How about small English model, does it work?

WeMakeBest commented 12 months ago

No it doesn't work

nshmyrev commented 12 months ago

And what about vosk-android-demo apk? does it work?

WeMakeBest commented 12 months ago

As I said it was working earlier but suddenly yesterday it stopped working I didn't even changed the code

WeMakeBest commented 12 months ago

Any updates?

WeMakeBest commented 12 months ago

implementation 'net.java.dev.jna:jna:5.8.0@aar' implementation group: 'com.alphacephei', name: 'vosk-android', version: '0.3.32'

I am using above version

WeMakeBest commented 11 months ago

Update the library to latest version