-
Notifications
You must be signed in to change notification settings - Fork 0
/
path.sh
executable file
·50 lines (40 loc) · 1.54 KB
/
path.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# path_kaldi_config
export KALDI_ROOT=/opt/kaldi
export PATH=$KALDI_ROOT/tools/irstlm/bin:$PATH
export PATH=$KALDI_ROOT/tools/srilm/bin:$PATH
export PATH=$KALDI_ROOT/tools/srilm/bin/i686-m64:$PATH
export PATH=$KALDI_ROOT/tools/kenlm/build/bin:$PATH
export PATH=$KALDI_ROOT/tools/sctk/bin:$PATH
export PATH=$KALDI_ROOT/tools/sph2pipe_v2.5:$PATH
export PATH=$KALDI_ROOT/tools/openfst/bin:$PATH
export PATH=$KALDI_ROOT/tools/fstbin/:$PATH
export IRSTLM=$KALDI_ROOT/tools/irstlm
PYTHON='python2.7'
PYTHON3='python3'
# SRILM is needed for LM model building
SRILM_ROOT=$KALDI_ROOT/tools/srilm
SRILM_PATH=$SRILM_ROOT/bin:$SRILM_ROOT/bin/i686-m64
export PATH=$PATH:$SRILM_PATH
# Sequitur G2P executable
sequitur=$KALDI_ROOT/tools/sequitur/g2p.py
sequitur_path="$(dirname $sequitur)/lib/$PYTHON/site-packages"
# Use GPUs with Kaldi
export CUDA_HOME=/usr/local/cuda-11.6
export LD_LIBRARY_PATH=$CUDA_HOME/lib64:$LD_LIBRARY_PATH
export PATH=$CUDA_HOME/bin:$PATH
export PATH=\
$KALDI_ROOT/src/bin:$KALDI_ROOT/src/chainbin:\
$KALDI_ROOT/src/featbin:$KALDI_ROOT/src/fgmmbin:\
$KALDI_ROOT/src/fstbin:$KALDI_ROOT/src/gmmbin:\
$KALDI_ROOT/src/ivectorbin:$KALDI_ROOT/src/kwsbin:\
$KALDI_ROOT/src/latbin:$KALDI_ROOT/src/lmbin:\
$KALDI_ROOT/src/nnet2bin:$KALDI_ROOT/src/nnet3bin:\
$KALDI_ROOT/src/nnetbin:$KALDI_ROOT/src/online2bin:\
$KALDI_ROOT/src/onlinebin:$KALDI_ROOT/src/sgmm2bin:\
$KALDI_ROOT/src/sgmmbin:$PATH
#$KALDI_ROOT/src/lmbin/:$PATH
export PATH=$PWD/utils:$PWD/steps:$PATH
export LC_ALL=C
export LANG=fr_Fr.UTF-8
export LANGUAGE=fr_FR.UTF-8
#export LC_ALL=fr_FR.UTF-8