after some hours of work I managed to compile Kaldi together with Gstreamer plugin for the DNN-based online decoder and installed kaldi-gstreamer-server with the TEDLIUM model following the tutorials in every detail (I hope ^^).
The server is running and the workers too, but when I try to transcribe a test file I get the following error from the client:
I'm not sure if this error is related to kaldi-gstreamer-server or to kaldi in general and my hope was that someone has an idea where this might come from.
I still have very little experience with Kaldi and right now I've no idea where to look to solve this problem. I checked all the related folders and files for read/write access but could not find anything.
Here is the output of the server and worker, maybe it helps:
Server:DEBUG2015-04-1119:10:50,352StartingupserverINFO2015-04-1119:12:00,597Newworkeravailable<__main__.WorkerSocketHandlerobjectat0x7fabc5a64390>INFO2015-04-1119:12:24,791bb1ac9b8-cece-4844-8593-8d861d9a2945:OPENINFO2015-04-1119:12:24,791bb1ac9b8-cece-4844-8593-8d861d9a2945:Requestarguments:content-type=""INFO2015-04-1119:12:24,791bb1ac9b8-cece-4844-8593-8d861d9a2945:Usingworker<__main__.DecoderSocketHandlerobjectat0x7fabc5a64690>INFO2015-04-1119:12:24,901bb1ac9b8-cece-4844-8593-8d861d9a2945:Sendingevent{u'status':5,u'message':u'Could not open file "tmp/bb1ac9b8-cece-4844-8593-8d861d9a2945.raw" f... to client INFO 2015-04-11 19:12:24,901 Worker <__main__.WorkerSocketHandler object at 0x7fabc5a64390> leaving INFO 2015-04-11 19:12:24,902 bb1ac9b8-cece-4844-8593-8d861d9a2945: Handling on_connection_close() INFO 2015-04-11 19:12:24,902 bb1ac9b8-cece-4844-8593-8d861d9a2945: Closing worker connection INFO 2015-04-11 19:12:25,905 New worker available <__main__.WorkerSocketHandler object at 0x7fabc5a643d0> Worker: DEBUG 2015-04-11 19:11:07,532 Starting up worker 2015-04-11 19:11:07 - INFO: decoder2: Creating decoder using conf: {'post-processor': "perl -npe 'BEGIN{useIO::Handle;STDOUT->autoflush(1);}s/(.*)/\\1./;'", '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': {'big-lm-const-arpa': 'test/models/english/tedlium_nnet_ms_sp_online/G.carpa', 'ivector-extraction-config': 'test/models/english/tedlium_nnet_ms_sp_online/conf/ivector_extractor.conf', 'lattice-beam': 6.0, 'acoustic-scale': 0.083, 'lm-fst': 'test/models/english/tedlium_nnet_ms_sp_online/G.fst', 'beam': 15.0, 'max-active': 7000, 'fst': 'test/models/english/tedlium_nnet_ms_sp_online/HCLG.fst', 'mfcc-config': 'test/models/english/tedlium_nnet_ms_sp_online/conf/mfcc.conf', 'use-threaded-decoder': True, 'model': 'test/models/english/tedlium_nnet_ms_sp_online/final.mdl', 'do-endpointing': True, 'word-syms': 'test/models/english/tedlium_nnet_ms_sp_online/words.txt', 'endpoint-silence-phones': '1:2:3:4:5:6:7:8:9:10'}, 'silence-timeout': 10, 'out-dir': 'tmp', 'use-nnet2': True}/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::endpoint-silence-phones after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::endpoint-rule1-must-contain-nonsilence after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::endpoint-rule1-min-trailing-silence after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: g_param_spec_float: assertion 'default_value>=minimum&&default_value<=maximum' failed self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: g_object_class_install_property: assertion 'G_IS_PARAM_SPEC(pspec)' failed self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::endpoint-rule2-must-contain-nonsilence after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::endpoint-rule2-min-trailing-silence after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::endpoint-rule2-max-relative-cost after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::endpoint-rule3-must-contain-nonsilence after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::endpoint-rule3-min-trailing-silence after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::endpoint-rule3-max-relative-cost after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::endpoint-rule4-must-contain-nonsilence after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::endpoint-rule4-min-trailing-silence after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::endpoint-rule5-must-contain-nonsilence after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::endpoint-rule5-min-utterance-length after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::feature-type after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::mfcc-config after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::plp-config after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::fbank-config after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::add-pitch after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::online-pitch-config after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::ivector-extraction-config after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::ivector-silence-weighting-silence-phones after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::ivector-silence-weighting-silence-weight after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::delta after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::max-mem after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::phone-determinize after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::word-determinize after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::minimize after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::beam after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::max-active after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::min-active after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::lattice-beam after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::prune-interval after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::determinize-lattice after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::beam-delta after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::hash-ratio after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::acoustic-scale after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::max-buffered-features after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::feature-batch-size after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::nnet-batch-size after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::max-loglikes-copy after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::decode-batch-sie after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: When installing property: type 'Gstkaldinnet2onlinedecoder' already has a property named 'delta' self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: When installing property: type 'Gstkaldinnet2onlinedecoder' already has a property named 'max-mem' self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: When installing property: type 'Gstkaldinnet2onlinedecoder' already has a property named 'phone-determinize' self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: When installing property: type 'Gstkaldinnet2onlinedecoder' already has a property named 'word-determinize' self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: When installing property: type 'Gstkaldinnet2onlinedecoder' already has a property named 'minimize' self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: When installing property: type 'Gstkaldinnet2onlinedecoder' already has a property named 'beam' self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: When installing property: type 'Gstkaldinnet2onlinedecoder' already has a property named 'max-active' self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: When installing property: type 'Gstkaldinnet2onlinedecoder' already has a property named 'min-active' self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: When installing property: type 'Gstkaldinnet2onlinedecoder' already has a property named 'lattice-beam' self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: When installing property: type 'Gstkaldinnet2onlinedecoder' already has a property named 'prune-interval' self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: When installing property: type 'Gstkaldinnet2onlinedecoder' already has a property named 'determinize-lattice' self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: When installing property: type 'Gstkaldinnet2onlinedecoder' already has a property named 'beam-delta' self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: When installing property: type 'Gstkaldinnet2onlinedecoder' already has a property named 'hash-ratio' self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: When installing property: type 'Gstkaldinnet2onlinedecoder' already has a property named 'acoustic-scale' self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::pad-input after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::max-nnet-batch-size after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")2015-04-11 19:11:10 - INFO: decoder2: Setting property: use-threaded-decoder = True2015-04-11 19:11:10 - INFO: decoder2: Setting decoder property: big-lm-const-arpa = test/models/english/tedlium_nnet_ms_sp_online/G.carpa2015-04-11 19:11:10 - INFO: decoder2: Setting decoder property: ivector-extraction-config = test/models/english/tedlium_nnet_ms_sp_online/conf/ivector_extractor.conf2015-04-11 19:11:10 - INFO: decoder2: Setting decoder property: lattice-beam = 6.02015-04-11 19:11:10 - INFO: decoder2: Setting decoder property: acoustic-scale = 0.0832015-04-11 19:11:10 - INFO: decoder2: Setting decoder property: lm-fst = test/models/english/tedlium_nnet_ms_sp_online/G.fst2015-04-11 19:11:10 - INFO: decoder2: Setting decoder property: beam = 15.02015-04-11 19:11:10 - INFO: decoder2: Setting decoder property: max-active = 70002015-04-11 19:11:10 - INFO: decoder2: Setting decoder property: fst = test/models/english/tedlium_nnet_ms_sp_online/HCLG.fst2015-04-11 19:11:10 - INFO: decoder2: Setting decoder property: mfcc-config = test/models/english/tedlium_nnet_ms_sp_online/conf/mfcc.conf2015-04-11 19:11:10 - INFO: decoder2: Setting decoder property: model = test/models/english/tedlium_nnet_ms_sp_online/final.mdl2015-04-11 19:11:10 - INFO: decoder2: Setting decoder property: do-endpointing = True2015-04-11 19:11:10 - INFO: decoder2: Setting decoder property: word-syms = test/models/english/tedlium_nnet_ms_sp_online/words.txt2015-04-11 19:11:10 - INFO: decoder2: Setting decoder property: endpoint-silence-phones = 1:2:3:4:5:6:7:8:9:102015-04-11 19:11:10 - INFO: decoder2: Created GStreamer elements2015-04-11 19:11:10 - DEBUG: decoder2: Adding <__main__.GstAppSrc object at 0x7f2694c59910 (GstAppSrc at 0x2619da0)> to the pipeline2015-04-11 19:11:10 - DEBUG: decoder2: Adding <__main__.GstDecodeBin object at 0x7f2694c595f0 (GstDecodeBin at 0x260a030)> to the pipeline2015-04-11 19:11:10 - DEBUG: decoder2: Adding <__main__.GstAudioConvert object at 0x7f2694c596e0 (GstAudioConvert at 0x262d320)> to the pipeline2015-04-11 19:11:10 - DEBUG: decoder2: Adding <__main__.GstAudioResample object at 0x7f2694c59820 (GstAudioResample at 0x263a5f0)> to the pipeline2015-04-11 19:11:10 - DEBUG: decoder2: Adding <__main__.GstTee object at 0x7f2694c59870 (GstTee at 0x25d6cd0)> to the pipeline2015-04-11 19:11:10 - DEBUG: decoder2: Adding <__main__.GstQueue object at 0x7f2694c59aa0 (GstQueue at 0x2640130)> to the pipeline2015-04-11 19:11:10 - DEBUG: decoder2: Adding <__main__.GstFileSink object at 0x7f2694c59af0 (GstFileSink at 0x2643630)> to the pipeline2015-04-11 19:11:10 - DEBUG: decoder2: Adding <__main__.GstQueue object at 0x7f2694c59b40 (GstQueue at 0x2640420)> to the pipeline2015-04-11 19:11:10 - DEBUG: decoder2: Adding <__main__.Gstkaldinnet2onlinedecoder object at 0x7f2694c13730 (Gstkaldinnet2onlinedecoder at 0x266c040)> to the pipeline2015-04-11 19:11:10 - DEBUG: decoder2: Adding <__main__.GstFakeSink object at 0x7f2694c13780 (GstFakeSink at 0x267aa10)> to the pipeline2015-04-11 19:11:10 - INFO: decoder2: Linking GStreamer elementsLOG (ComputeDerivedVars():ivector-extractor.cc:180) Computing derived variables for iVector extractorLOG (ComputeDerivedVars():ivector-extractor.cc:201) Done.2015-04-11 19:11:10 - INFO: decoder2: Setting pipeline to READY2015-04-11 19:12:00 - INFO: decoder2: Set pipeline to READY2015-04-11 19:12:00 - INFO: __main__: Opening websocket connection to master server2015-04-11 19:12:00 - INFO: __main__: Opened websocket connection to server2015-04-11 19:12:24 - DEBUG: __main__: <undefined>: Got message from server of type <class 'ws4py.messaging.TextMessage'>2015-04-11 19:12:24 - INFO: decoder2: bb1ac9b8-cece-4844-8593-8d861d9a2945: Initializing request2015-04-11 19:12:24 - ERROR: decoder2: (GError('Couldnotopenfile"tmp/bb1ac9b8-cece-4844-8593-8d861d9a2945.raw"forwriting.',), 'gstfilesink.c(423):gst_file_sink_open_file():/GstPipeline:pipeline0/GstFileSink:filesink:\nsystemerror:Nosuchfileordirectory')2015-04-11 19:12:24 - INFO: decoder2: bb1ac9b8-cece-4844-8593-8d861d9a2945: Resetting decoder state2015-04-11 19:12:24 - INFO: __main__: bb1ac9b8-cece-4844-8593-8d861d9a2945: Started timeout guard2015-04-11 19:12:24 - INFO: __main__: bb1ac9b8-cece-4844-8593-8d861d9a2945: Initialized request2015-04-11 19:12:24 - DEBUG: __main__: bb1ac9b8-cece-4844-8593-8d861d9a2945: Checking that decoder hasn'tbeensilentformorethan10seconds2015-04-1119:12:24-DEBUG:ws4py:Closingmessagereceived(1000)''2015-04-1119:12:24-DEBUG:__main__:bb1ac9b8-cece-4844-8593-8d861d9a2945:Websocketclosed()called2015-04-1119:12:24-DEBUG:__main__:bb1ac9b8-cece-4844-8593-8d861d9a2945:Websocketclosed()finished2015-04-1119:12:25-INFO:__main__:Openingwebsocketconnectiontomasterserver2015-04-1119:12:25-INFO:__main__:Openedwebsocketconnectiontoserver
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
after some hours of work I managed to compile Kaldi together with
Gstreamer plugin for the DNN-based online decoder and installed
kaldi-gstreamer-server https://github.com/alumae/kaldi-gstreamer-server
with the TEDLIUM model following the tutorials in every detail (I hope ^^).
The server is running and the workers too, but when I try to transcribe a
test file I get the following error from the client:
Client:
python kaldigstserver/client.py -r 8192 test/data/bill_gates-TED.mp3Received error from server (status 5)Error message: Could not open file "tmp/bb1ac9b8-cece-4844-8593-8d861d9a2945.raw" for writing.
I'm not sure if this error is related to kaldi-gstreamer-server or to
kaldi in general and my hope was that someone has an idea where this might
come from.
I still have very little experience with Kaldi and right now I've no idea
where to look to solve this problem. I checked all the related folders and
files for read/write access but could not find anything.
Here is the output of the server and worker, maybe it helps:
Server:
DEBUG 2015-04-11 19:10:50,352 Starting up server
INFO 2015-04-11 19:12:00,597 New worker available <main.WorkerSocketHandler object at 0x7fabc5a64390>
INFO 2015-04-11 19:12:24,791 bb1ac9b8-cece-4844-8593-8d861d9a2945: OPEN
INFO 2015-04-11 19:12:24,791 bb1ac9b8-cece-4844-8593-8d861d9a2945: Request arguments: content-type=""
INFO 2015-04-11 19:12:24,791 bb1ac9b8-cece-4844-8593-8d861d9a2945: Using worker <main.DecoderSocketHandler object at 0x7fabc5a64690>
INFO 2015-04-11 19:12:24,901 bb1ac9b8-cece-4844-8593-8d861d9a2945: Sending event {u'status': 5, u'message': u'Could not open file "tmp/bb1ac9b8-cece-4844-8593-8d861d9a2945.raw" f... to client INFO 2015-04-11 19:12:24,901 Worker <main.WorkerSocketHandler object at 0x7fabc5a64390> leaving INFO 2015-04-11 19:12:24,902 bb1ac9b8-cece-4844-8593-8d861d9a2945: Handling on_connection_close() INFO 2015-04-11 19:12:24,902 bb1ac9b8-cece-4844-8593-8d861d9a2945: Closing worker connection INFO 2015-04-11 19:12:25,905 New worker available <main.WorkerSocketHandler object at 0x7fabc5a643d0>
Worker:
DEBUG 2015-04-11 19:11:07,532 Starting up worker 2015-04-11 19:11:07 - INFO: decoder2: Creating decoder using conf: {'post-processor': "perl -npe 'BEGIN {use IO::Handle; STDOUT->autoflush(1);} s/(.*)/\1./;'", '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': {'big-lm-const-arpa': 'test/models/english/tedlium_nnet_ms_sp_online/G.carpa', 'ivector-extraction-config': 'test/models/english/tedlium_nnet_ms_sp_online/conf/ivector_extractor.conf', 'lattice-beam': 6.0, 'acoustic-scale': 0.083, 'lm-fst': 'test/models/english/tedlium_nnet_ms_sp_online/G.fst', 'beam': 15.0, 'max-active': 7000, 'fst': 'test/models/english/tedlium_nnet_ms_sp_online/HCLG.fst', 'mfcc-config': 'test/models/english/tedlium_nnet_ms_sp_online/conf/mfcc.conf', 'use-threaded-decoder': True, 'model': 'test/models/english/tedlium_nnet_ms_sp_online/final.mdl', 'do-endpointing': True, 'word-syms': 'test/models/english/tedlium_nnet_ms_sp_online/words.txt', 'endpoint-silence-phones': '1:2:3:4:5:6:7:8:9:10'}, 'silence-timeout': 10, 'out-dir': 'tmp', 'use-nnet2': True}/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::endpoint-silence-phones after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::endpoint-rule1-must-contain-nonsilence after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::endpoint-rule1-min-trailing-silence after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: g_param_spec_float: assertion 'default_value >= minimum && default_value <= maximum' failed self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: g_object_class_install_property: assertion 'G_IS_PARAM_SPEC (pspec)' failed self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::endpoint-rule2-must-contain-nonsilence after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::endpoint-rule2-min-trailing-silence after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::endpoint-rule2-max-relative-cost after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::endpoint-rule3-must-contain-nonsilence after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::endpoint-rule3-min-trailing-silence after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::endpoint-rule3-max-relative-cost after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::endpoint-rule4-must-contain-nonsilence after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::endpoint-rule4-min-trailing-silence after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::endpoint-rule5-must-contain-nonsilence after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::endpoint-rule5-min-utterance-length after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::feature-type after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::mfcc-config after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::plp-config after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::fbank-config after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::add-pitch after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::online-pitch-config after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::ivector-extraction-config after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::ivector-silence-weighting-silence-phones after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::ivector-silence-weighting-silence-weight after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::delta after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::max-mem after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::phone-determinize after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::word-determinize after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::minimize after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::beam after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::max-active after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::min-active after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::lattice-beam after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::prune-interval after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::determinize-lattice after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::beam-delta after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::hash-ratio after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::acoustic-scale after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::max-buffered-features after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::feature-batch-size after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::nnet-batch-size after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::max-loglikes-copy after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::decode-batch-sie after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: When installing property: type 'Gstkaldinnet2onlinedecoder' already has a property named 'delta' self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: When installing property: type 'Gstkaldinnet2onlinedecoder' already has a property named 'max-mem' self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: When installing property: type 'Gstkaldinnet2onlinedecoder' already has a property named 'phone-determinize' self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: When installing property: type 'Gstkaldinnet2onlinedecoder' already has a property named 'word-determinize' self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: When installing property: type 'Gstkaldinnet2onlinedecoder' already has a property named 'minimize' self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: When installing property: type 'Gstkaldinnet2onlinedecoder' already has a property named 'beam' self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: When installing property: type 'Gstkaldinnet2onlinedecoder' already has a property named 'max-active' self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: When installing property: type 'Gstkaldinnet2onlinedecoder' already has a property named 'min-active' self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: When installing property: type 'Gstkaldinnet2onlinedecoder' already has a property named 'lattice-beam' self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: When installing property: type 'Gstkaldinnet2onlinedecoder' already has a property named 'prune-interval' self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: When installing property: type 'Gstkaldinnet2onlinedecoder' already has a property named 'determinize-lattice' self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: When installing property: type 'Gstkaldinnet2onlinedecoder' already has a property named 'beam-delta' self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: When installing property: type 'Gstkaldinnet2onlinedecoder' already has a property named 'hash-ratio' self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: When installing property: type 'Gstkaldinnet2onlinedecoder' already has a property named 'acoustic-scale' self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::pad-input after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")/home/flow/Kaldi/kaldi-gstreamer-server-master/kaldigstserver/decoder2.py:42: Warning: Attempt to add property Gstkaldinnet2onlinedecoder::max-nnet-batch-size after class was initialised self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")2015-04-11 19:11:10 - INFO: decoder2: Setting property: use-threaded-decoder = True2015-04-11 19:11:10 - INFO: decoder2: Setting decoder property: big-lm-const-arpa = test/models/english/tedlium_nnet_ms_sp_online/G.carpa2015-04-11 19:11:10 - INFO: decoder2: Setting decoder property: ivector-extraction-config = test/models/english/tedlium_nnet_ms_sp_online/conf/ivector_extractor.conf2015-04-11 19:11:10 - INFO: decoder2: Setting decoder property: lattice-beam = 6.02015-04-11 19:11:10 - INFO: decoder2: Setting decoder property: acoustic-scale = 0.0832015-04-11 19:11:10 - INFO: decoder2: Setting decoder property: lm-fst = test/models/english/tedlium_nnet_ms_sp_online/G.fst2015-04-11 19:11:10 - INFO: decoder2: Setting decoder property: beam = 15.02015-04-11 19:11:10 - INFO: decoder2: Setting decoder property: max-active = 70002015-04-11 19:11:10 - INFO: decoder2: Setting decoder property: fst = test/models/english/tedlium_nnet_ms_sp_online/HCLG.fst2015-04-11 19:11:10 - INFO: decoder2: Setting decoder property: mfcc-config = test/models/english/tedlium_nnet_ms_sp_online/conf/mfcc.conf2015-04-11 19:11:10 - INFO: decoder2: Setting decoder property: model = test/models/english/tedlium_nnet_ms_sp_online/final.mdl2015-04-11 19:11:10 - INFO: decoder2: Setting decoder property: do-endpointing = True2015-04-11 19:11:10 - INFO: decoder2: Setting decoder property: word-syms = test/models/english/tedlium_nnet_ms_sp_online/words.txt2015-04-11 19:11:10 - INFO: decoder2: Setting decoder property: endpoint-silence-phones = 1:2:3:4:5:6:7:8:9:102015-04-11 19:11:10 - INFO: decoder2: Created GStreamer elements2015-04-11 19:11:10 - DEBUG: decoder2: Adding <main.GstAppSrc object at 0x7f2694c59910 (GstAppSrc at 0x2619da0)> to the pipeline2015-04-11 19:11:10 - DEBUG: decoder2: Adding <main.GstDecodeBin object at 0x7f2694c595f0 (GstDecodeBin at 0x260a030)> to the pipeline2015-04-11 19:11:10 - DEBUG: decoder2: Adding <main.GstAudioConvert object at 0x7f2694c596e0 (GstAudioConvert at 0x262d320)> to the pipeline2015-04-11 19:11:10 - DEBUG: decoder2: Adding <main.GstAudioResample object at 0x7f2694c59820 (GstAudioResample at 0x263a5f0)> to the pipeline2015-04-11 19:11:10 - DEBUG: decoder2: Adding <main.GstTee object at 0x7f2694c59870 (GstTee at 0x25d6cd0)> to the pipeline2015-04-11 19:11:10 - DEBUG: decoder2: Adding <main.GstQueue object at 0x7f2694c59aa0 (GstQueue at 0x2640130)> to the pipeline2015-04-11 19:11:10 - DEBUG: decoder2: Adding <main.GstFileSink object at 0x7f2694c59af0 (GstFileSink at 0x2643630)> to the pipeline2015-04-11 19:11:10 - DEBUG: decoder2: Adding <main.GstQueue object at 0x7f2694c59b40 (GstQueue at 0x2640420)> to the pipeline2015-04-11 19:11:10 - DEBUG: decoder2: Adding <main.Gstkaldinnet2onlinedecoder object at 0x7f2694c13730 (Gstkaldinnet2onlinedecoder at 0x266c040)> to the pipeline2015-04-11 19:11:10 - DEBUG: decoder2: Adding <main.GstFakeSink object at 0x7f2694c13780 (GstFakeSink at 0x267aa10)> to the pipeline2015-04-11 19:11:10 - INFO: decoder2: Linking GStreamer elementsLOG (ComputeDerivedVars():ivector-extractor.cc:180) Computing derived variables for iVector extractorLOG (ComputeDerivedVars():ivector-extractor.cc:201) Done.2015-04-11 19:11:10 - INFO: decoder2: Setting pipeline to READY2015-04-11 19:12:00 - INFO: decoder2: Set pipeline to READY2015-04-11 19:12:00 - INFO: main: Opening websocket connection to master server2015-04-11 19:12:00 - INFO: main: Opened websocket connection to server2015-04-11 19:12:24 - DEBUG: main: <undefined>: Got message from server of type <class 'ws4py.messaging.TextMessage'="">2015-04-11 19:12:24 - INFO: decoder2: bb1ac9b8-cece-4844-8593-8d861d9a2945: Initializing request2015-04-11 19:12:24 - ERROR: decoder2: (GError('Could not open file "tmp/bb1ac9b8-cece-4844-8593-8d861d9a2945.raw" for writing.',), 'gstfilesink.c(423): gst_file_sink_open_file (): /GstPipeline:pipeline0/GstFileSink:filesink:\nsystem error: No such file or directory')2015-04-11 19:12:24 - INFO: decoder2: bb1ac9b8-cece-4844-8593-8d861d9a2945: Resetting decoder state2015-04-11 19:12:24 - INFO: main: bb1ac9b8-cece-4844-8593-8d861d9a2945: Started timeout guard2015-04-11 19:12:24 - INFO: main: bb1ac9b8-cece-4844-8593-8d861d9a2945: Initialized request2015-04-11 19:12:24 - DEBUG: main: bb1ac9b8-cece-4844-8593-8d861d9a2945: Checking that decoder hasn't been silent for more than 10 seconds2015-04-11 19:12:24 - DEBUG: ws4py: Closing message received (1000) ''2015-04-11 19:12:24 - DEBUG: main: bb1ac9b8-cece-4844-8593-8d861d9a2945: Websocket closed() called2015-04-11 19:12:24 - DEBUG: main: bb1ac9b8-cece-4844-8593-8d861d9a2945: Websocket closed() finished2015-04-11 19:12:25 - INFO: main: Opening websocket connection to master server2015-04-11 19:12:25 - INFO: main: Opened websocket connection to server
About your error "Could not open file "tmp/bb1ac9b8-cece-4844-8593-8d861d9a2945.raw": just create a directory "tmp". It's used for outputting the audio that is fed to Kaldi (for debug purposes, configurable in the YAML file). I also committed a fix that creates this directory automatically.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi everybody,
after some hours of work I managed to compile Kaldi together with Gstreamer plugin for the DNN-based online decoder and installed kaldi-gstreamer-server with the TEDLIUM model following the tutorials in every detail (I hope ^^).
The server is running and the workers too, but when I try to transcribe a test file I get the following error from the client:
I'm not sure if this error is related to kaldi-gstreamer-server or to kaldi in general and my hope was that someone has an idea where this might come from.
I still have very little experience with Kaldi and right now I've no idea where to look to solve this problem. I checked all the related folders and files for read/write access but could not find anything.
Here is the output of the server and worker, maybe it helps:
None of these messages look familiar to me, they must relate to Tanel's
work. Cc'ing him.
Dan
On Sat, Apr 11, 2015 at 11:06 AM, Florian floriq@users.sf.net wrote:
Problem solved thanks to tanel: