Closed russlevy closed 9 years ago
Does it work if use the non-threaded decoder?
I doubt if it works with a wav file that is continuously being written. Maybe you can somehow stream the audio into GStreamer istead of a wav file?
It works on the non-threaded decoder I modified the client to read in the following way (basically wait 5 seconds before assuming you're at the end of the file).
On the unthreaded version it works well.
def try_read(self, f):
count = 0
while True:
for block in iter(lambda: f.read(self.byterate/4), ""):
self.send_data(block)
count = 0
time.sleep(1)
if count > 5:
break
count = count + 1
OK, I'll take a look.
I committed a fix, please try again.
Just to make it clear, the fix was committed to gst-kaldi-nnet2-online -- you have to recompile it.
Using the sample_english_nnet2.yaml as is, and then adding
use-threaded-decoder : True
to the decoder section I am running this on a WAV file that is continuously being written to storage, and I get this error message:It alternates between this message and
You cannot call FinalizeDecoding() and then call BestPathEnd() with use_final_probs == false
(the assertion before it in the file).Do you have any recommendations on getting this to work?