1、从github上下载kaldi
下载地址:GitHub - kaldi-asr/kaldi: kaldi-asr/kaldi is the official location of the Kaldi project.
2、解压后打开INSTALL,了解整个安装流程
[Option 1 in the following does not apply to native Windows install, see windows/INSTALL or following Option 2]
Option 1 (bash + makefile):
Steps:
(1) go to tools/ and follow INSTALL instructions there.
(2) go to src/ and follow INSTALL instructions there.
Option 2 (cmake):
Go to cmake/ and follow INSTALL.md instructions there.
Note, it may not be well tested and some features are missing currently.
里面也有针对windows安装的详情介绍,此处是安装ubuntu。
3、在tools文件目录下进行安装
检查先决条件
extras/check_dependencies.sh
在这个过程中会出现安装编译依赖文件提醒,根据提示进行安装即可。直到下图文字弹出表示依赖文件均安装成功。
支持C++兼容的
make
如果默认不支持C++兼容的
CXX=g++-4.8 extras/check_dependencies.sh
make
# which by default will install ATLAS headers, OpenFst, SCTK and sph2pipe.OpenFst requires a relatively recent C++ compiler with C++11 support, e.g.g++ >= 4.7, Apple clang >= 5.0 or LLVM clang >= 3.3. If your system default compiler does not have adequate support for C++11, you can specify a C++11 compliant compiler as a command argument
make CXX=g++-4.8
make -j 4
4、在src文件目录下进行安装
./configure --shared
make depend -j 8
make -j 8
相关的更多信息可以查看:Kaldi: Kaldi
5、验证安装成功,在egs/yesno目录下
cd s5/
bash ./run.sh
6、下载sctk-2.4.10
下载链接:
wget http://www.openslr.org/resources/4/sctk-2.4.10-20151007-1312Z.tar.bz2
下载解压,在sctk-2.4.10下打开终端运行
make config
make all
make check
make install
make doc