vosk-android-demo: V/KaldiDemo: Assertion failed: (indexes->row_offsets.size() == time_offsets_.size())
When I run Kaldi it works for some time but after a few seconds (5-10) it dumps the following error:
V/KaldiDemo: Assertion failed: (indexes->row_offsets.size() == time_offsets_.size())
How can I go over it?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 27
Ok, I figured that out. Model variable shouldn’t be local in setup task, it contains data. If you make it local, it is garbage collected soon and everything crashes.
Make model a field in the activity, so it stays alive with the activity, then everything will be fine.
I will create a separate issue about it.