diff --git a/main.py b/main.py index bee5ccb36e82c7cc654f029ca479bdc0331ddb5d..666b1de6eea42f1f1e8d8f62fc4ab971e006b747 100644 --- a/main.py +++ b/main.py @@ -6,7 +6,7 @@ import glob, re # set to location of libgstkaldionline2.so directory = os.path.dirname(__file__) or '.' -os.environ['GST_PLUGIN_PATH'] = directory + '/asr/' +os.environ['GST_PLUGIN_PATH'] = directory + '/asr/gst' os.environ['GTK_THEME'] = 'light' print 'gst plugin path =', os.environ['GST_PLUGIN_PATH'] diff --git a/slu.py b/slu.py index 1d31c14a9c4148fd8f682c5d390718bb1fa7b738..13dbb9c0982e4f7ec164e2d2c010688ce1465e8c 100644 --- a/slu.py +++ b/slu.py @@ -7,7 +7,7 @@ _semaphore = None class SLU: #/src.new/rocio_slu -word "$prefix"_dico_word.txt -action "$prefix"_dico_action.txt -fstmodel "$prefix".fst -fstclean "$prefix"_clean_tail.fst - def __init__(self, word_lexicon, action_lexicon, model_fst, cleaner_fst, library='slu/src.new/librocio_slu.so'): + def __init__(self, word_lexicon, action_lexicon, model_fst, cleaner_fst, library='slu/src/librocio_slu.so'): global _backend, _semaphore if _backend == None: _backend = cdll.LoadLibrary(library) diff --git a/slu/src/Makefile b/slu/src/Makefile index c18a021679ff90a550342fbc2bac1e6cb0c596ef..62a7ee4a74f67eb4ed306da4f692391eb0609e19 100644 --- a/slu/src/Makefile +++ b/slu/src/Makefile @@ -3,7 +3,7 @@ CC=g++ -CPPFLAGS+= -I. -lfst -I/storage/raid1/homedirs/frederic.bechet/tools/openfst-1.3.3/src/include -L/storage/raid1/homedirs/frederic.bechet/tools/openfst-1.3.3/src/lib/.libs -ldl -std=c++0x -g -Wall +CPPFLAGS+= -I. -lfst -I$(HOME)/kaldi-rocio.git/tools/openfst/include -L$(HOME)/kaldi-rocio.git/tools/openfst/lib/ -ldl -std=c++0x -g -Wall all: rocio_slu process_xml_for_slu diff --git a/start.sh b/start.sh index 421654ccc8d44749d950a29f259916d4d44328f3..51f8cd0415b64512694cac823ba2fbc21d904a20 100755 --- a/start.sh +++ b/start.sh @@ -1 +1,5 @@ -LD_LIBRARY_PATH=/home/favre/work/kaldi/dictate/aur-atlas-lapack/pkg/atlas-lapack/usr/lib/ python2 main.py +#export OPENBLAS_NUM_THREADS=1 +#export OMP_NUM_THREADS=1 +#LD_LIBRARY_PATH=$HOME/kaldi-rocio.git/src/lib/:$HOME/kaldi-rocio.git/tools/openfst/lib/ python2 main.py +dir=`dirname $0` +LD_LIBRARY_PATH=$dir/asr/libs:$dir/asr/libs/fst:$dir/asr/libs/atlas python2 main.py