Blame view

egs/voxforge/s5/path.sh 841 Bytes
8dcb6dfcb   Yannick Estève   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  export KALDI_ROOT=`pwd`/../../..
  [ -f $KALDI_ROOT/tools/env.sh ] && . $KALDI_ROOT/tools/env.sh
  export PATH=$PWD/utils/:$KALDI_ROOT/tools/openfst/bin:$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
  
  # VoxForge data will be stored in:
  # export DATA_ROOT="$KALDI_ROOT/egs/voxforge/s5/voxforge"    # e.g. something like /media/secondary/voxforge
  
  if [ -z $DATA_ROOT ]; then
    echo "You need to set \"DATA_ROOT\" variable in path.sh to point to the directory to host VoxForge's data"
    exit 1
  fi
  
  # Make sure that MITLM shared libs are found by the dynamic linker/loader
  export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/tools/mitlm-svn/lib
  
  # Needed for "correct" sorting
  export LC_ALL=C