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

"Using the 'onlinegmmdecodefaster' based worker" #112

Open Alif112 opened 6 years ago

Alif112 commented 6 years ago

i have tried this and got the same type of problem in decoder. and i am trying: "Using the 'onlinegmmdecodefaster' based worker"

python kaldigstserver/worker.py -u ws://localhost:8888/worker/ws/speech -c sample_worker.yaml

DEBUG 2018-01-28 13:25:11,387 Starting up worker 2018-01-28 13:25:11 - INFO: decoder: Creating decoder using conf: {'timeout-decoder': 10, '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'}}}, 'decoder': {'word-syms': 'test/models/english/voxforge/tri2b_mmi_b0.05/words.txt', 'model': 'test/models/english/voxforge/tri2b_mmi_b0.05/final.mdl', 'lda-mat': 'test/models/english/voxforge/tri2b_mmi_b0.05/final.mat', 'fst': 'test/models/english/voxforge/tri2b_mmi_b0.05/HCLG.fst', 'silence-phones': '1:2:3:4:5'}, 'silence-timeout': 60, 'out-dir': 'tmp', 'use-vad': False} 2018-01-28 13:25:11 - INFO: decoder: Setting decoder property: word-syms = test/models/english/voxforge/tri2b_mmi_b0.05/words.txt Traceback (most recent call last): File "kaldigstserver/worker.py", line 366, in main() File "kaldigstserver/worker.py", line 348, in main decoder_pipeline = DecoderPipeline(conf) File "/media/thesis/73EF5F223191438D/kaldi-gstreamer-server/kaldigstserver/decoder.py", line 25, in init self.create_pipeline(conf) File "/media/thesis/73EF5F223191438D/kaldi-gstreamer-server/kaldigstserver/decoder.py", line 54, in create_pipeline self.asr.set_property(key, val) AttributeError: 'NoneType' object has no attribute 'set_property'

madacol commented 6 years ago

cd into kaldi's folder and build gst-plugin, it should go something like this:

cd ~/kaldi/src/gst-plugin
make depend; make

and don't forget to add export GST_PLUGIN_PATH=~/kaldi/src/gst-plugin

Alif112 commented 6 years ago

thanks