| if [ -z $KALDI_ROOT ] ; then | |
| echo "Environemnt variable KALDI_ROOT is unset. Setting it to default /data1/tools/kaldi" | |
| export KALDI_ROOT=/data1/tools/kaldi | |
| fi | |
| [ -f $KALDI_ROOT/tools/env.sh ] && . $KALDI_ROOT/tools/env.sh | |
| export PATH=$PWD/utils/:$KALDI_ROOT/tools/openfst/bin:$KALDI_ROOT/tools/irstlm/bin/:$KALDI_ROOT/tools/kaldi_lm/:$PWD:$PATH | |
| [ ! -f $KALDI_ROOT/tools/config/common_path.sh ] && echo >&2 "The standard file $KALDI_ROOT/tools/config/common_path.sh is not present -> Exit!" && exit 1 | |
| . $KALDI_ROOT/tools/config/common_path.sh | |
| export LC_ALL=C | |