Skip to content
Snippets Groups Projects
Commit 429ded8f authored by Benoit Favre's avatar Benoit Favre
Browse files

adaptation to archlinux vm

parent 6d636799
No related branches found
No related tags found
No related merge requests found
......@@ -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']
......
......@@ -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)
......
......@@ -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
......
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment