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 339 forks source link

Can't return decoding results #219

Closed 00001101-xt closed 5 years ago

00001101-xt commented 5 years ago

Hi, it seems that my server didn't send back the decoding result.

Here is my query and response:

curl -T 0000.wav "http://IP:PORT/client/dynamic/recognize"
{"status": 1, "message": "", "id": "29bb66dc-556d-4d3f-81eb-119756328a0f"}%

which is telling me that the decoding process failed with exit code 1 with no other supply information.

But, in the 'worker.log' file, I did see the right decode result like:

Got full final result: {"status": 0, "result": {"final": true, "hypotheses": [{"transcript": "blablabla...

Any idea what's going wrong? Thanks.

00001101-xt commented 5 years ago

Resolved refers to this issue.

In worker.py, Change

    thread.start_new_thread(main_loop, (args.uri, decoder_pipeline, post_processor, full_post_processor))  

to

    thread.start_new_thread(main_loop, (args.uri, decoder_pipeline, None, None))