alumae / kaldi-gstreamer-server

Real-time full-duplex speech recognition server, based on the Kaldi toolkit and the GStreamer framwork.
BSD 2-Clause "Simplified" License
1.07k stars 341 forks source link

Worker crashes on second execution with a message #2

Closed ngoel17 closed 10 years ago

ngoel17 commented 10 years ago

Client is executed twice as follows: $python kaldigstserver/client.py -r 32000 test/data/english_test.raw ONE TWO THREE FOUR FIVE SIX SEVEN EIGHT. ONE TWO THREE FOUR FIVE SIX SEVEN EIGHT. $ python kaldigstserver/client.py -r 32000 test/data/english_test.raw

-- second client execution crashes the worker with following message note - online-feat-input was modified to print Frame, featoffset and feat.NumRows() Kaldi version: 4441

WARNING (IsValidFrame():online-feat-input.cc:531) Unexpected point reached in code: Frame :624, feat_offest:107, Feature Matrix Rows:30 possibly you are skipping frames? ERROR (CacheFrame():online-decodable.cc:47) Request for invalid frame (you need to check IsLastFrame, or, for frame zero, check that the input is valid. terminate called after throwing an instance of 'std::runtime_error' what(): ERROR (CacheFrame():online-decodable.cc:47) Request for invalid frame (you need to check IsLastFrame, or, for frame zero, check that the input is valid.

alumae commented 10 years ago

I managed to reproduce it, seems that it's related to recent changes in Kaldi since it didn't occur with a 2 week old Kaldi SVN revision. Working on it.

alumae commented 10 years ago

Was caused by a (recently introduced?) bug in Kaldi's GStreamer plugin. Update Kaldi SVN, recompile the GStreamer plugin and it should be fixed.