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

websocket closed before ASR completed #161

Closed cathryn0131 closed 5 years ago

cathryn0131 commented 5 years ago

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. image this is the chinese_nnet3.yaml

# You have to download TEDLIUM "online nnet2" models in order to use this sample
# Run download-tedlium-nnet2.sh in 'test/models' to download them.
use-nnet2: True
decoder:
    # All the properties nested here correspond to the kaldinnet2onlinedecoder GStreamer plugin properties.
    # Use gst-inspect-1.0 ./libgstkaldionline2.so kaldinnet2onlinedecoder to discover the available properties
    use-threaded-decoder:  true
    model : test/models/chinese/final.mdl
    word-syms : test/models/chinese/words.txt
    fst : test/models/chinese/HCLG.fst
    mfcc-config : test/models/chinese/conf/mfcc.conf
    ivector-extraction-config : test/models/chinese/conf/ivector_extractor.conf
    min-active: 200
    max-active: 7000
    beam: 15.0
    lattice-beam: 6.0
    acoustic-scale: 1.0
    do-endpointing : false
    endpoint-silence-phones : "1:2:3:4:5:6:7:8:9:10"
    traceback-period-in-secs: 0.25
    chunk-length-in-secs: 0.25
    num-nbest: 10
    nnet-mode: 3
    #Additional functionality that you can play with:
    #lm-fst:  test/models/english/tedlium_nnet_ms_sp_online/G.fst
    #big-lm-const-arpa: test/models/english/tedlium_nnet_ms_sp_online/G.carpa
    #phone-syms: test/models/english/tedlium_nnet_ms_sp_online/phones.txt
    #word-boundary-file: test/models/english/tedlium_nnet_ms_sp_online/word_boundary.int
    #do-phone-alignment: true
out-dir: tmp

use-vad: False
silence-timeout: 10

# Just a sample post-processor that appends "." to the hypothesis
#post-processor: perl -npe 'BEGIN {use IO::Handle; STDOUT->autoflush(1);} s/(.*)/\1./;'

# A sample full post processor that add a confidence score to 1-best hyp and deletes other n-best hyps
#full-post-processor: ./sample_full_post_processor.py

logging:
    version : 1
    disable_existing_loggers: False
    formatters:
        simpleFormater:
            format: '%(asctime)s - %(levelname)7s: %(name)10s: %(message)s'
            datefmt: '%Y-%m-%d %H:%M:%S'
    handlers:
        console:
            class: logging.StreamHandler
            formatter: simpleFormater
            level: DEBUG
    root:
        level: DEBUG
        handlers: [console]

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

` worker log: `root@1943144a69f6:/data/kaldi-gstreamer-server-master# python2 kaldigstserver/worker.py -u ws://localhost:8888/worker/ws/speech -c chinese_nnet3.yaml DEBUG 2018-12-04 15:09:53,259 Starting up worker 2018-12-04 15:09:53 - INFO: decoder2: Creating decoder using conf: {'logging': {'version': 1, 'root': {'level': 'DEBUG', 'handlers': ['console']}, 'formatters': {'simpleFormater': {'datefmt': '%Y-%m-%d %H:%M:%S', 'format': '%(asctime)s - %(levelname)7s: %(name)10s: %(message)s'}}, 'disable_existing_loggers': False, 'handlers': {'console': {'formatter': 'simpleFormater', 'class': 'logging.StreamHandler', 'level': 'DEBUG'}}}, 'use-vad': False, 'decoder': {'ivector-extraction-config': 'test/models/chinese/conf/ivector_extractor.conf', 'min-active': 200, 'lattice-beam': 6.0, 'acoustic-scale': 1.0, 'do-endpointing': False, 'beam': 15.0, 'mfcc-config': 'test/models/chinese/conf/mfcc.conf', 'traceback-period-in-secs': 0.25, 'nnet-mode': 3, 'endpoint-silence-phones': '1:2:3:4:5:6:7:8:9:10', 'word-syms': 'test/models/chinese/words.txt', 'num-nbest': 10, 'max-active': 7000, 'fst': 'test/models/chinese/HCLG.fst', 'use-threaded-decoder': True, 'model': 'test/models/chinese/final.mdl', 'chunk-length-in-secs': 0.25}, 'silence-timeout': 10, 'out-dir': 'tmp', 'use-nnet2': True} 2018-12-04 15:09:53 - INFO: decoder2: Setting decoder property: nnet-mode = 3 2018-12-04 15:09:53 - INFO: decoder2: Setting decoder property: ivector-extraction-config = test/models/chinese/conf/ivector_extractor.conf 2018-12-04 15:09:53 - INFO: decoder2: Setting decoder property: min-active = 200 2018-12-04 15:09:53 - INFO: decoder2: Setting decoder property: lattice-beam = 6.0 2018-12-04 15:09:53 - INFO: decoder2: Setting decoder property: acoustic-scale = 1.0 2018-12-04 15:09:53 - INFO: decoder2: Setting decoder property: do-endpointing = False 2018-12-04 15:09:53 - INFO: decoder2: Setting decoder property: beam = 15.0 2018-12-04 15:09:53 - INFO: decoder2: Setting decoder property: mfcc-config = test/models/chinese/conf/mfcc.conf 2018-12-04 15:09:53 - INFO: decoder2: Setting decoder property: traceback-period-in-secs = 0.25 2018-12-04 15:09:53 - INFO: decoder2: Setting decoder property: endpoint-silence-phones = 1:2:3:4:5:6:7:8:9:10 2018-12-04 15:09:53 - INFO: decoder2: Setting decoder property: word-syms = test/models/chinese/words.txt 2018-12-04 15:09:53 - INFO: decoder2: Setting decoder property: num-nbest = 10 2018-12-04 15:09:53 - INFO: decoder2: Setting decoder property: max-active = 7000 2018-12-04 15:09:53 - INFO: decoder2: Setting decoder property: chunk-length-in-secs = 0.25 2018-12-04 15:09:53 - INFO: decoder2: Setting decoder property: fst = test/models/chinese/HCLG.fst 2018-12-04 15:09:54 - INFO: decoder2: Setting decoder property: model = test/models/chinese/final.mdl LOG ([5.5.89~1-d68c0]:CompileLooped():nnet-compile-looped.cc:345) Spent 0.031616 seconds in looped compilation. 2018-12-04 15:09:54 - INFO: decoder2: Created GStreamer elements 2018-12-04 15:09:54 - DEBUG: decoder2: Adding <__gi__.GstAppSrc object at 0x7fb1c8c3f410 (GstAppSrc at 0x364a1b0)> to the pipeline 2018-12-04 15:09:54 - DEBUG: decoder2: Adding <__gi__.GstDecodeBin object at 0x7fb1c8c3f320 (GstDecodeBin at 0x354c030)> to the pipeline 2018-12-04 15:09:54 - DEBUG: decoder2: Adding <__gi__.GstAudioConvert object at 0x7fb1c8c3f2d0 (GstAudioConvert at 0x3663000)> to the pipeline 2018-12-04 15:09:54 - DEBUG: decoder2: Adding <__gi__.GstAudioResample object at 0x7fb1c8c3f3c0 (GstAudioResample at 0x3670280)> to the pipeline 2018-12-04 15:09:54 - DEBUG: decoder2: Adding <__gi__.GstTee object at 0x7fb1c8c3f280 (GstTee at 0x3674000)> to the pipeline 2018-12-04 15:09:54 - DEBUG: decoder2: Adding <__gi__.GstQueue object at 0x7fb1c8c3f370 (GstQueue at 0x3678000)> to the pipeline 2018-12-04 15:09:54 - DEBUG: decoder2: Adding <__gi__.GstFileSink object at 0x7fb1c8c3f460 (GstFileSink at 0x367d210)> to the pipeline 2018-12-04 15:09:54 - DEBUG: decoder2: Adding <__gi__.GstQueue object at 0x7fb1c8c3f4b0 (GstQueue at 0x36782f0)> to the pipeline 2018-12-04 15:09:54 - DEBUG: decoder2: Adding <__gi__.Gstkaldinnet2onlinedecoder object at 0x7fb1c8c3f500 (Gstkaldinnet2onlinedecoder at 0x365e2a0)> to the pipeline 2018-12-04 15:09:54 - DEBUG: decoder2: Adding <__gi__.GstFakeSink object at 0x7fb1c8c3f550 (GstFakeSink at 0x37d7e10)> to the pipeline 2018-12-04 15:09:54 - INFO: decoder2: Linking GStreamer elements LOG ([5.5.89~1-d68c0]:ComputeDerivedVars():ivector-extractor.cc:183) Computing derived variables for iVector extractor LOG ([5.5.89~1-d68c0]:ComputeDerivedVars():ivector-extractor.cc:204) Done. 2018-12-04 15:09:54 - INFO: decoder2: Setting pipeline to READY 2018-12-04 15:09:54 - INFO: decoder2: Set pipeline to READY 2018-12-04 15:09:54 - INFO: __main__: Opening websocket connection to master server 2018-12-04 15:09:54 - INFO: __main__: Opened websocket connection to server 2018-12-04 15:10:07 - DEBUG: __main__: : Got message from server of type 2018-12-04 15:10:07 - INFO: decoder2: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Initializing request 2018-12-04 15:10:07 - INFO: __main__: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Started timeout guard 2018-12-04 15:10:07 - DEBUG: __main__: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Checking that decoder hasn't been silent for more than 10 seconds 2018-12-04 15:10:07 - INFO: __main__: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Initialized request 2018-12-04 15:10:07 - DEBUG: __main__: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Got message from server of type 2018-12-04 15:10:07 - DEBUG: decoder2: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Pushing buffer of size 8000 to pipeline 2018-12-04 15:10:07 - DEBUG: decoder2: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Pushing buffer done 2018-12-04 15:10:07 - INFO: decoder2: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Connecting audio decoder 2018-12-04 15:10:07 - INFO: decoder2: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Connected audio decoder 2018-12-04 15:10:07 - DEBUG: __main__: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Got message from server of type 2018-12-04 15:10:07 - DEBUG: decoder2: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Pushing buffer of size 8000 to pipeline 2018-12-04 15:10:07 - DEBUG: decoder2: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Pushing buffer done 2018-12-04 15:10:07 - DEBUG: __main__: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Got message from server of type 2018-12-04 15:10:07 - DEBUG: decoder2: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Pushing buffer of size 8000 to pipeline 2018-12-04 15:10:07 - DEBUG: decoder2: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Pushing buffer done 2018-12-04 15:10:08 - DEBUG: __main__: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Got message from server of type 2018-12-04 15:10:08 - DEBUG: decoder2: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Pushing buffer of size 8000 to pipeline 2018-12-04 15:10:08 - DEBUG: decoder2: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Pushing buffer done 2018-12-04 15:10:08 - DEBUG: __main__: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Checking that decoder hasn't been silent for more than 10 seconds 2018-12-04 15:10:08 - INFO: decoder2: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Got partial result: 2018-12-04 15:10:08 - INFO: __main__: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Postprocessing (final=False) result.. 2018-12-04 15:10:08 - INFO: __main__: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Postprocessing done. 2018-12-04 15:10:08 - DEBUG: __main__: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Got message from server of type 2018-12-04 15:10:08 - DEBUG: decoder2: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Pushing buffer of size 8000 to pipeline 2018-12-04 15:10:08 - DEBUG: decoder2: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Pushing buffer done 2018-12-04 15:10:08 - INFO: decoder2: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Got partial result: 呃 手动 的 2018-12-04 15:10:08 - INFO: __main__: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Postprocessing (final=False) result.. 2018-12-04 15:10:08 - INFO: __main__: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Postprocessing done. 2018-12-04 15:10:08 - DEBUG: ws4py: Closing message received (1000) '' 2018-12-04 15:10:08 - DEBUG: __main__: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Websocket closed() called 2018-12-04 15:10:08 - INFO: __main__: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Master disconnected before decoder reached EOS? 2018-12-04 15:10:08 - INFO: decoder2: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Sending EOS to pipeline in order to cancel processing 2018-12-04 15:10:08 - INFO: decoder2: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Cancelled pipeline 2018-12-04 15:10:08 - INFO: __main__: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Waiting for EOS from decoder 2018-12-04 15:10:08 - INFO: decoder2: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Got partial result: 呃 手动 的话 2018-12-04 15:10:08 - INFO: __main__: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Postprocessing (final=False) result.. 2018-12-04 15:10:08 - INFO: __main__: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Postprocessing done. 2018-12-04 15:10:08 - WARNING: __main__: Failed to send event to master: Cannot send on a terminated websocket 2018-12-04 15:10:09 - INFO: decoder2: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Got partial result: 手动挡 的话 是 2018-12-04 15:10:09 - INFO: __main__: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Postprocessing (final=False) result.. 2018-12-04 15:10:09 - INFO: __main__: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Postprocessing done. 2018-12-04 15:10:09 - WARNING: __main__: Failed to send event to master: Cannot send on a terminated websocket 2018-12-04 15:10:09 - INFO: decoder2: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Got partial result: 呃 手动 的话 十二 2018-12-04 15:10:09 - INFO: __main__: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Postprocessing (final=False) result.. 2018-12-04 15:10:09 - INFO: __main__: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Postprocessing done. 2018-12-04 15:10:09 - WARNING: __main__: Failed to send event to master: Cannot send on a terminated websocket 2018-12-04 15:10:09 - INFO: __main__: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Waiting for EOS from decoder 2018-12-04 15:10:09 - INFO: decoder2: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Got partial result: 呃 手动 的话 十二 万 八千 2018-12-04 15:10:09 - INFO: __main__: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Postprocessing (final=False) result.. 2018-12-04 15:10:09 - INFO: __main__: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Postprocessing done. 2018-12-04 15:10:09 - WARNING: __main__: Failed to send event to master: Cannot send on a terminated websocket 2018-12-04 15:10:09 - INFO: decoder2: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Got final result: 呃 手动 的话 十二 万 八千 八 2018-12-04 15:10:09 - INFO: decoder2: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Got full final result: {"segment-length": 2.28, "status": 0, "total-length": 2.304, "result": {"final": true, "hypotheses": [{"transcript": "呃 手动 的话 十二 万 八千 八", "likelihood": 295.774}, {"transcript": "呃 手动 的话 十万 八千 八", "likelihood": 295.038}, {"transcript": " 手动挡 的话 十二 万 八千 八", "likelihood": 294.997}, {"transcript": " 手动 的话 十二 万 八千 八", "likelihood": 294.97}, {"transcript": " 手动挡 的话 是 十二 万 八千 八", "likelihood": 294.845}, {"transcript": " 手动挡 的话 是 十万 八千 八", "likelihood": 294.822}, {"transcript": " 手动挡 的话 十二 万 八千 八", "likelihood": 294.774}, {"transcript": "呃 手动挡 的话 十二 万 八千 八", "likelihood": 294.651}, {"transcript": " 手动挡 的话 是 万 八千 八", "likelihood": 294.625}, {"transcript": "呃 手动 的话 十二 万 八千 八", "likelihood": 294.624}]}, "segment-start": 0.0} 2018-12-04 15:10:09 - DEBUG: __main__: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Before postprocessing: {u'status': 0, u'segment-start': 0.0, u'segment-length': 2.28, u'total-length': 2.304, u'result': {u'hypotheses': [{u'likelihood': 295.774, u'transcript': u'呃 手动 的话 十二 万 八千 八'}, {u'likelihood': 295.038, u'transcript': u'呃 手动 的话 十万 八千 八'}, {u'likelihood': 294.997, u'transcript': u' 手动挡 的话 十二 万 八千 八'}, {u'likelihood': 294.97, u'transcript': u' 手动 的话 十二 万 八千 八'}, {u'likelihood': 294.845, u'transcript': u' 手动挡 的话 是 十二 万 八千 八'}, {u'likelihood': 294.822, u'transcript': u' 手动挡 的话 是 十万 八千 八'}, {u'likelihood': 294.774, u'transcript': u' 手动挡 的话 十二 万 八千 八'}, {u'likelihood': 294.651, u'transcript': u'呃 手动挡 的话 十二 万 八千 八'}, {u'likelihood': 294.625, u'transcript': u' 手动挡 的话 是 万 八千 八'}, {u'likelihood': 294.624, u'transcript': u'呃 手动 的话 十二 万 八千 八'}], u'final': True}, 'segment': 0, 'id': u'c6bf138c-131e-4adb-8558-668c8cb0e3ab'} 2018-12-04 15:10:09 - INFO: __main__: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Postprocessing done. 2018-12-04 15:10:09 - DEBUG: __main__: c6bf138c-131e-4adb-8558-668c8cb0e3ab: After postprocessing: {u'status': 0, u'segment-start': 0.0, u'segment-length': 2.28, u'total-length': 2.304, u'result': {u'hypotheses': [{u'likelihood': 295.774, u'transcript': u'呃 手动 的话 十二 万 八千 八'}, {u'likelihood': 295.038, u'transcript': u'呃 手动 的话 十万 八千 八'}, {u'likelihood': 294.997, u'transcript': u' 手动挡 的话 十二 万 八千 八'}, {u'likelihood': 294.97, u'transcript': u' 手动 的话 十二 万 八千 八'}, {u'likelihood': 294.845, u'transcript': u' 手动挡 的话 是 十二 万 八千 八'}, {u'likelihood': 294.822, u'transcript': u' 手动挡 的话 是 十万 八千 八'}, {u'likelihood': 294.774, u'transcript': u' 手动挡 的话 十二 万 八千 八'}, {u'likelihood': 294.651, u'transcript': u'呃 手动挡 的话 十二 万 八千 八'}, {u'likelihood': 294.625, u'transcript': u' 手动挡 的话 是 万 八千 八'}, {u'likelihood': 294.624, u'transcript': u'呃 手动 的话 十二 万 八千 八'}], u'final': True}, 'segment': 0, 'id': u'c6bf138c-131e-4adb-8558-668c8cb0e3ab'} 2018-12-04 15:10:09 - WARNING: __main__: Failed to send event to master: Cannot send on a terminated websocket 2018-12-04 15:10:09 - INFO: decoder2: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Pipeline received eos signal 2018-12-04 15:10:09 - INFO: decoder2: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Resetting decoder state 2018-12-04 15:10:09 - INFO: __main__: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Sending adaptation state to client... 2018-12-04 15:10:09 - WARNING: __main__: Failed to send event to master: Cannot send on a terminated websocket 2018-12-04 15:10:10 - INFO: decoder2: : Resetting decoder state 2018-12-04 15:10:10 - INFO: __main__: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Finished waiting for EOS 2018-12-04 15:10:10 - DEBUG: __main__: c6bf138c-131e-4adb-8558-668c8cb0e3ab: Websocket closed() finished 2018-12-04 15:10:11 - INFO: __main__: Opening websocket connection to master server 2018-12-04 15:10:11 - INFO: __main__: Opened websocket connection to server `
cathryn0131 commented 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~

taomanwai commented 5 years ago

I have similar issue, but audios are using EN only, any other possible reasons?

Thanks in advance.

pedrodparkes commented 4 years ago

I have the same issue with english text. Waiting for EOS from decoder

Guidachengong commented 4 years ago

@pedrodparkes Try to use Tornado 4.5.3

kli017 commented 4 years ago

@cathryn0131 hello I am also meeting this problem when decoding chinese characters. which print should I common out?