Ubuntu安装kaldi的过程
Install kaldi
Related links
1.Kadli Github.
2.Kaldi Documentation.
3.Kaldi Install.
Kaldi’s requirements
OS: Ubuntu, CentOS, MacOSX, Windows, Cygwin, etc
GCC >= 4.7
1.Git clone Kaldi
$ git clone https://github.com/kaldi-asr/kaldi
2.Install tools
$ cd <kaldi-root>/tools
$ make -j <NUM-CPU>
3.Select BLAS library from ATLAS, OpenBLAS, or MKL
$ cd <kaldi-root>/tools
## OpenBLAS
$ ./extras/install_openblas.sh
## MKL
$ sudo ./extras/install_mkl.sh
## ATLAS
$ sudo apt-get install libatlas-base-dev
这一步还需要安装OpenFst,不然编译时会报错
$ cd <kaldi-root>/tools
## OpenFst
$ make openfst
安装完第三方工具后,可以检查一下还差哪些依赖
$ cd <kaldi-root>/tools
$ .extras/check_dependencies.sh
根据提示安装需要的依赖
4.Compile Kaldi & install
$ cd <kaldi-root>/src
# [By default MKL is used] ESPnet uses only feature extractor, so you can disable CUDA
$ ./configure --use-cuda=no
# [With OpenBLAS]
# $ ./configure --openblas-root=../tools/OpenBLAS/install --use-cuda=no
# If you'll use CUDA
# ./configure --cudatk-dir=/usr/local/cuda-10.0
$ make -j clean depend; make -j <NUM-CPU>