Kaldi安装(ubuntu)

16 篇文章 0 订阅
4 篇文章 0 订阅

git 下载:

 

  git clone https://github.com/kaldi-asr/kaldi.git kaldi --origin upstream
   cd kaldi
  git pull

我下载目录在~/workspace/build/kaldi

进入kaldi目录 查看 INSTALL 文件指导进行安装

 

 go to tools/ and follow INSTALL instructions there.
  
  
 go to src/ and follow INSTALL instructions there.

进入 tools/ 查看INSTALL 信息

执行 extras/check_dependencies.sh

发现很多没安装(gcc 必须的):

extras/check_dependencies.sh: zlib is not installed.
extras/check_dependencies.sh: automake is not installed.
extras/check_dependencies.sh: autoconf is not installed.
extras/check_dependencies.sh: neither libtoolize nor glibtoolize is installed
extras/check_dependencies.sh: subversion is not installed
extras/check_dependencies.sh: python2.7 is not installed
extras/check_dependencies.sh: we recommend that you run (our best guess):
 sudo apt-get install  zlib1g-dev automake autoconf libtool subversion 
You should probably do: 
 sudo apt-get install libatlas3-base

按提示一步一步来就行了:

 执行:

 

sudo apt-get install libatlas3-base 
sudo apt-get install zlib1g-dev automake autoconf libtool subversion
sudo apt-get install python

当出现:extras/check_dependencies.sh: all OK. 表示成功安装

查看cpu核心数目:

nproc --all  (我的为4)

执行:

make -j x(x为cpu核心数 :我的是4)

出现:All done OK. 表示成功安装。

进入 src目录 查看install 安装说明:

执行:

 

  ./configure --shared

出现:

 

Could not find {libatlas,libsatlas}.so in any of the obvious places, will most likely try static:
Could not find libatlas.a in any of the generic-Linux places, but we'll try other stuff...

** Failed to configure ATLAS libraries ***
**  ERROR   **
** Configure cannot proceed automatically.
**  If you know that you have ATLAS installed somewhere on your machine, you
** may be able to proceed by replacing [somewhere] in kaldi.mk with a directory.
**  If you have sudo (root) access you could install the ATLAS package on your
** machine, e.g. 'sudo apt-get install libatlas-dev libatlas-base-dev' or
** 'sudo yum install atlas.x86_64' or 'sudo zypper install libatlas3-devel',
** or on cygwin, install atlas from the installer GUI; and then run ./configure
** again.
**
**  Otherwise (or if you prefer OpenBLAS for speed), you could go the OpenBLAS
** route: cd to ../tools, type 'extras/install_openblas.sh', cd back to here,
** and type './configure  --openblas-root=../tools/OpenBLAS/install'

执行:

sudo apt-get install libatlas-base-dev

执行:

./configure --shared

看到:

SUCCESS

To compile: make clean -j; make depend -j; make -j

表示成功:

执行:

 make depend -j 8

  make -j 8

出现:Done

表示成功

 

 

现在需要验证一下是否安装成功

进入egs目录,用命令 cat README.txt 查看用例,egs下面包含如voxforge,vystadial_{cz,en},yesno和LDC用例

这里用yesno为例

进入egs/yesno目录,用命令cat README.txt 查看yesno数据集介绍,是一个关于Yes/no识别的简单的数据集

进入egs/yesno/s5目录,执行 ./run.sh 脚本

出现%WER 0.00 [ 0 / 232, 0 ins, 0 del, 0 sub ] exp/mono0a/decode_test_yesno/wer_10_0.0时,恭喜你,Kaldi安装成功!

 

 

参考:https://blog.csdn.net/liahuafu/article/details/79834635

 

获取更多帮主请关注小程序

 

  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要在Ubuntu安装Kaldi,您可以按照以下步骤进行操作: 1. 打开终端并运行以下命令来添加Kaldi的软件源: ``` sudo add-apt-repository ppa:ubuntu-toolchain-r/test ``` 2. 运行以下命令来更新软件包列表: ``` sudo apt-get update ``` 3. 运行以下命令来安装Kaldi: ``` sudo apt-get install g ``` 通过上述步骤,您应该能够在Ubuntu上成功安装Kaldi。如果您需要更详细的安装指南,可以参考引用提供的UbuntuKaldi安装配置图文教程,它会给您提供更详细的步骤和参考价值。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [UbuntuKaldi 安装](https://blog.csdn.net/Noooo0ob/article/details/122936006)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [Ubuntukaldi安装配置图文教程](https://download.csdn.net/download/weixin_38670433/12842711)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [语音识别--kaldi环境搭建(基于Ubuntu系统)](https://blog.csdn.net/weixin_38468077/article/details/103842314)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值