参考:https://blog.csdn.net/weixin_39594447/article/details/86765305
https://blog.csdn.net/gui694278452/article/details/88058507
https://wiki.znc.in/Installation#Mac_OS_X
-
1.从github上拉取代码
git clone https://github.com/kaldi-asr/kaldi
-
2.按照INSTALL里的提示
cd kaldi/tools/extras
./check_dependencies.sh
#按照缺少包的提示安装,可以选择brew或者port
#若使用brew时遇到Updating Homebrew长时间不响应,可以考虑换成其他的镜像源或者临时control+c取消本次#更新
#e.g 缺少automake
#brew install automake
#若需要使用python3.7需要安装MKL,但是提示中会给出网址
cd ../
make #会很久
cd ../src
./configure
make depend #也很久
make #久
make install
make时也可以选择多核编译,按照给出的提示:
-
3.测试
cd ..
cd ..
cd kaldi/egs/yesno/s5
./run.sh
结果: