kaldi安装

首先,虚拟机调用不了显卡。这么基础的问题一定要切记。所以说如果用VMware安装ubuntu来跑kaldi就不用安装NVIDIA和cuda等一系列步骤!!!

但是就是不需要安装一些列显卡驱动,安装kaldi对我来说也废了不少时间。开始说下自己安装kaldi的步骤吧。

首先,像之前所说,我是在虚拟机上安装的ubuntu16.04。虚拟机选用的是VMware WorkStation14。(很感谢QQ群的群友们,群号279295537)

安装VMware时,内存的话电脑有条件调个4G,硬盘的话最少50G,可以适当增加,我调的70G。处理器内核数我设置的4核。

我选用的是ubuntu-16.04.4-desktop-amd64.在VMware选择映像文件即可。VNware Tools按照提示安装就行。

群里的大神不建议用虚拟机跑,做得好的语音识别都是用实机跑的。

安装kaldi可是费了不少时间,一些必要的软件还是需要安装的:

具体安装方法如下:
(1)sudo apt-get install libtool
(2)sudo apt-get install autoconf
(3)sudo apt-get install wget
(4)sudo apt-get install perl
(5)sudo apt-get install subversion
(6)sudo apt-get install build-essential
(7)sudo apt-get install gfortran
(8)sudo apt-get install libatlas-dev
(9)sudo apt-get install libatlas-base-dev
(10)sudo apt-get install zlib1g-dev (中间有个数字1)
(11)如果报function gensub never defined,则需要安装gawk
安装办法:apt-get install gawk

另外一些需要的软件在你安装kaldi的时候就会提示安装了,按照所建议的安装即可。

下载kaldi:git clone https://github.com/kaldi-asr/kaldi.git 这时,会提醒你安装git:sudo apt-get install git

接下来就是cd kaldi/tools make -j 4了。在make之前一定要认真读tools文件夹里面的install文件。

文件内容如下:

To check the prerequisites for Kaldi, first run

  extras/check_dependencies.sh

and see if there are any system-level installations you need to do. Check the
output carefully. There are some things that will make your life a lot easier
if you fix them at this stage. If your system default C++ compiler is not
supported, you can do the check with another compiler by setting the CXX
environment variable, e.g.(我就是因为这一段按照这个编译的,才重新安装成功的。)

  CXX=g++-4.8 extras/check_dependencies.sh

Then run

  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, e.g.

  make CXX=g++-4.8

If you have multiple CPUs and want to speed things up, you can do a parallel
build by supplying the "-j" option to make, e.g. to use 4 CPUs

  make -j 4

In extras/, there are also various scripts to install extra bits and pieces that
are used by individual example scripts.  If an example script needs you to run
one of those scripts, it will tell you what to do.

https://sourceforge.net/p/kaldi/mailman/message/31911576/

只要make成功后,后面的kaldi/src ./configure、make depend和make就会很流畅的。

如果安装遇到错误,看到其他博主所说的更改源文件config之类的千万别入坑,重新找资源下载kaldi就行,自己之前也修改了一些文件里的代码,错误是不报了,但是最后还是会出现一些问题。

 

  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值