Closed cathryn0131 closed 5 years ago
As for this problem, it's solved by comment out lines starting with 'print' in received_message() in client.py due to Chinese character decoding. Thanks for Tanel's help. Wish this could be helpful for anyone who met same issue~
I have similar issue, but audios are using EN only, any other possible reasons?
Thanks in advance.
I have the same issue with english text.
Waiting for EOS from decoder
@pedrodparkes Try to use Tornado 4.5.3
@cathryn0131 hello I am also meeting this problem when decoding chinese characters. which print should I common out?
Dear sir, While I am using this project with my NNET3 Chain model(chinese) to carry on speech recog, I ran into this error, the websocket will be closed before the final ASR.
this is the chinese_nnet3.yaml
this is the server log `INFO 2018-12-04 15:09:54,260 New worker available <main.WorkerSocketHandler object at 0x7f3d8b97ad90> INFO 2018-12-04 15:10:07,244 101 GET /client/ws/speech?content-type= (127.0.0.1) 0.45ms INFO 2018-12-04 15:10:07,244 c6bf138c-131e-4adb-8558-668c8cb0e3ab: OPEN INFO 2018-12-04 15:10:07,244 c6bf138c-131e-4adb-8558-668c8cb0e3ab: Request arguments: content-type="" INFO 2018-12-04 15:10:07,244 c6bf138c-131e-4adb-8558-668c8cb0e3ab: Using worker <main.DecoderSocketHandler object at 0x7f3d8b97a9d0> INFO 2018-12-04 15:10:07,468 c6bf138c-131e-4adb-8558-668c8cb0e3ab: Forwarding client message (<type 'str'>) of length 8000 to worker INFO 2018-12-04 15:10:07,720 c6bf138c-131e-4adb-8558-668c8cb0e3ab: Forwarding client message (<type 'str'>) of length 8000 to worker INFO 2018-12-04 15:10:07,971 c6bf138c-131e-4adb-8558-668c8cb0e3ab: Forwarding client message (<type 'str'>) of length 8000 to worker INFO 2018-12-04 15:10:08,223 c6bf138c-131e-4adb-8558-668c8cb0e3ab: Forwarding client message (<type 'str'>) of length 8000 to worker INFO 2018-12-04 15:10:08,293 c6bf138c-131e-4adb-8558-668c8cb0e3ab: Sending event {u'status': 0, u'segment': 0, u'result': {u'hypotheses': [{u'transcript': u' '}], u'fin... to client
INFO 2018-12-04 15:10:08,475 c6bf138c-131e-4adb-8558-668c8cb0e3ab: Forwarding client message (<type 'str'>) of length 8000 to worker
INFO 2018-12-04 15:10:08,684 c6bf138c-131e-4adb-8558-668c8cb0e3ab: Sending event {u'status': 0, u'segment': 0, u'result': {u'hypotheses': [{u'transcript': u'\u5443 \u624b\u52a8 ... to client
INFO 2018-12-04 15:10:08,684 c6bf138c-131e-4adb-8558-668c8cb0e3ab: Handling on_connection_close()
INFO 2018-12-04 15:10:08,684 c6bf138c-131e-4adb-8558-668c8cb0e3ab: Closing worker connection
INFO 2018-12-04 15:10:08,685 Worker <main.WorkerSocketHandler object at 0x7f3d8b97ad90> leaving
INFO 2018-12-04 15:10:11,693 101 GET /worker/ws/speech (127.0.0.1) 0.55ms
INFO 2018-12-04 15:10:11,693 New worker available <main.WorkerSocketHandler object at 0x7f3d8b97a0d0>
client log:
python2 kaldigstserver/client.py /data/wav_correct/wav/4006166201_XY0620260523_13659125793_18966953779_Transfer=4=5_20180825100150_dr__9_L.wav