kaldi安装教程(CentOs GPU机器)

本文详细介绍了在CentOS7系统上安装Kaldi语音识别系统的步骤,包括下载源码、检查并安装依赖包、编译配置及环境变量设置等关键环节,最后通过Yes/No模型测试验证安装是否成功。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

官网:https://kaldi-asr.org/

代码:https://github.com/kaldi-asr/kaldi

 

centos7 安装kaldi

 

下载:

git clone https://github.com/kaldi-asr/kaldi.git kaldi-trunk --origin golden

 

检查缺失包

tools/extras/check_dependencies.sh

安装缺失包

yum -y install patch  yum -y install sox

编译:在tools目录下

make -j 28

发现openfast包解压有问题,到http://www.openfst.org/twiki/bin/view/FST/FstDownload下载特定版本包,替换已经下载的压缩包。重新执行上面的命令.

编译:在src目录

./configure make -j 28

 

设置环境变量

export KALDI_ROOT=/data/jianli.yang/kaldi-trunk PATH=$KALDI_ROOT/tools/openfst:$PATH PATH=$KALDI_ROOT/src/featbin:$PATH PATH=$KALDI_ROOT/src/gmmbin:$PATH PATH=$KALDI_ROOT/src/bin:$PATH PATH=$KALDI_ROOT/src/nnetbin:$PATH export PATH

 

测试demo

使用yes/no模型

/data/jianli.yang/kaldi-trunk/egs/yesno/s5

执行run.sh

### Kaldi Installation Guide for Linux For installing Kaldi on a Linux system, the process involves several key steps that ensure all dependencies are met and the toolkit is correctly configured. Although specific instructions can vary based on distribution, general guidelines apply broadly. Ensure the operating environment meets prerequisites before starting installation procedures[^1]. Preparing the development environment includes updating package lists and installing necessary build tools: ```bash sudo apt-get update && sudo apt-get upgrade -y sudo apt-get install -y build-essential cmake curl git wget ``` Installing additional libraries required by Kaldi follows next. These packages provide essential functionalities such as matrix operations, signal processing capabilities, and more: ```bash sudo apt-get install -y autoconf automake bzip2 g++ gcc libatlas-base-dev \ libboost-all-dev libc6 libtool make pkg-config unzip zip zlib1g-dev ``` Cloning the official Kaldi repository from GitHub allows access to source code files needed for compilation: ```bash git clone https://github.com/kaldi-asr/kaldi.git --origin upstream cd kaldi/tools ``` After cloning, some Perl modules might be missing; these can usually be installed via CPAN or through package managers like `apt`. Running the provided script helps automate this part of setup: ```bash make -j$(nproc) ``` Compiling core components requires navigating into another directory within the cloned repository where actual building takes place using Makefiles included with sources: ```bash cd ../src/ ./configure make clean depend -j$(nproc) all ``` Once completed successfully, Kaldi should now reside locally ready for use after adding paths appropriately so commands become accessible globally without specifying full directories each time invoking them during future sessions.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值