Kaldi官方文档:http://kaldi-asr.org/doc/
Kaldi github:https://github.com/kaldi-asr/kaldi
Kaldi安装
下载代码到服务器:
$ git clone https://github.91chi.fun//https://github.com/kaldi-asr/kaldi.git
或者下载压缩包
$ wget https://github.91chi.fun//https://github.com/kaldi-asr/kaldi/archive/refs/heads/master.zip
$ unzip master.zip
进入kaldi-master/tools目录下,然后安装依赖
$ cd kaldi-master/tools
$ extras/check_dependencies.sh
extras/check_dependencies.sh: WARNING python 2.7 is not the default python. We fixed this by adding a correct symlink more prominently on the path.
... If you really want to use python 3.9.5 as default, add an empty file /public/home/wangyj/kaldi-master/tools/python/.use_default_python and run this script again.
# 提示需求安装依赖
$ touch /public/home/wangyj/kaldi-master/tools/python/.use_default_python
$ extras/check_dependencies.sh
extras/check_dependencies.sh: all OK.
$ make -j 8
编译配置
$ cd ../src
$ ./configure --shared
$ make depend -j 8
$ make -j 8
测试是否安装成功
$ cd ../egs/yesno/s5
$ sh run.sh
%WER 0.00 [ 0 / 232, 0 ins, 0 del, 0 sub ] exp/mono0a/decode_test_yesno/wer_10_0.0