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

Run client.py on english_test.raw, empty string returned #192

Open txz233 opened 5 years ago

txz233 commented 5 years ago

Following the instructions, I ran the client.py to detection the speech in english_test.raw. But there is only an empty string returned. I have no idea what happened, but I think there are some details which may cause the problem:

there is nothing in the out-dir in the yaml file. I modified the codes to make them run in Python3.

Can someone tell me where the problem is or which part of the logs should I check?

txz233 commented 5 years ago

I found the error log: Intel MKL FATAL ERROR: Cannot load libmkl_avx2.so or libmkl_def.so. Now I am trying to fix it....

txz233 commented 5 years ago

Only the gmm model has this problem. It may caused by multi thread operations because the intel mkl library cannot be loaded if they are occupied. DNN is totally OK btw.

leakyH commented 5 years ago

You can try this solution in worker.py.

leakyH commented 5 years ago

from this website: https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/748309 try this before executing: export LD_PRELOAD=/opt/intel/mkl/lib/intel64/libmkl_def.so:/opt/intel/mkl/lib/intel64/libmkl_avx2.so:/opt/intel/mkl/lib/intel64/libmkl_core.so:/opt/intel/mkl/lib/intel64/libmkl_intel_lp64.so:/opt/intel/mkl/lib/intel64/libmkl_intel_thread.so:/opt/intel/lib/intel64_lin/libiomp5.so helped me on both python and bash programs.

trungkiendang commented 5 years ago

from this website: https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/748309 try this before executing: export LD_PRELOAD=/opt/intel/mkl/lib/intel64/libmkl_def.so:/opt/intel/mkl/lib/intel64/libmkl_avx2.so:/opt/intel/mkl/lib/intel64/libmkl_core.so:/opt/intel/mkl/lib/intel64/libmkl_intel_lp64.so:/opt/intel/mkl/lib/intel64/libmkl_intel_thread.so:/opt/intel/lib/intel64_lin/libiomp5.so helped me on both python and bash programs.

It work for me. Tks alot. U save my life :dancer: