How to install Kaldi-ASR on Ubuntu 18
How to install Kaldi-ASR on Ubuntu 18
Kaldi is a speech recognition toolkit. The official website is: http://kaldi-asr.org/
To know more please check out the official website.
In this blog post would serve the purpose of a reference note for me, as well as could help some people out there.
You can use Linux on Windows sub system as well, and these instructions are specifically for Ubuntu 18 for other versions, the apt-get package names may vary slightly, but the installation would pretty much be the same. Including the operating system, Kaldi could take about 12 - 15 GB in space, so make sure, you have enough free space before proceeding.
sudo apt update
sudo add-apt-repository universe
sudo add-apt-repository main
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install libatlas-base-dev liblapack-dev libblas-dev
sudo apt-get install ffmpeg sox
mkdir kaldi
cd kaldi
git clone https://github.com/kaldi-asr/kaldi.git
cd kaldi/tools
extras/check_dependencies.sh
The output would contain any packages that need to be installed. Just follow the instructions from the out put of check_dependencies.sh. For me, the following two lines had to be done. So, if you completed installing as per check_dependencies, you can skip the next two lines.
sudo apt-get install zlib1g-dev automake autoconf unzip libtool subversion python2.7
extras/install_mkl.sh
Note: You can speed up make by parallel execution. If you have n processors and want to parallelize, pass -j n as parameters to make.
make
cd ../src
./configure --shared
make depend
make
And Kaldi system should be installed, if you followed all the instructions.
How to install Kaldi-ASR on Ubuntu 18
Comments
Post a Comment
Chime in!