Kaldi installation and configuration graphic tutorials under Ubuntu

The kaldi [voice recognition] (https://cloud.tencent.com/product/asr?from=10680) tool is required for the company's business needs. Now the steps of Kaldi environment configuration are listed for recording:

  1. Install the virtual machine:

Download the virtual machine VMware and install it. The virtual machine installation is relatively simple. You can install it by yourself on Baidu, so I won't repeat it here.

  1. Ubuntu operating system installation:

Download the Ubuntu image file, I chose the Ubuntu 16.04 version.

  1. Install the Ubuntu system on the virtual machine. This step will be explained in detail as follows:

3.1 After VMware is installed, choose to create a new virtual machine

3.2 Select the downloaded image file

3.3 Choose Next, set the system name and password

3.4 Continue to click Next to set the system installation location, here you can choose a larger disk

3.5 Continue to the next step to select the disk capacity. It is recommended to choose a larger size here, otherwise Kaldi will run the data afterwards and there will be insufficient capacity errors

3.6 Next, choose custom hardware settings, it is recommended to adjust the memory and processor, my computer memory 8G here set 6G,

Because the Kaldi data set is generally relatively large, it consumes more memory during operation, so adjust it here to increase the number of processors according to the configuration of your computer

Adjust accordingly

3.7 Return to the previous page and click Finish. Wait for VMware to automatically install the Ubuntu system

  1. Install Kaldi under ubuntu

4.1 Open the unbuntu terminal and use the Ctrl+Alt+T shortcut key to open it directly, enter

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

That is, download the latest version of Kaldi from github. Because Kaldi is continuously updated and maintained on github, the Kaldi under this path

The version is relatively complete, and the source code of the required examples and running examples are available,

If ubuntu does not have git installed, use the following command to install it:

sudo apt-get install git

4.2 After the download is complete, unzip it, find the compressed package of Kaldi and right click to extract it.

4.3 Directory introduction: The tools directory is all packages that Kaldi depends on. egs is an example provided by Kaldi, which contains commonly used data sets to run

Source code, src directory is the source code of Kaldi

4.4 Kaldi compilation

4.4.1 Make sure to install the following components before compiling:

apt-get,subversion,automake,autoconf,libtool,zlib,wget,libatal

Use the following command to install:

sudo apt-get install <component name>

4.4.2 Enter the tools directory to compile

cd kaldi/tools into the kaldi/tools directory

make or make -j 4 (multi-core parallel) download and compile

The process is relatively slow, and some components will be downloaded and installed the first time you perform make.

4.4.3 Enter the src directory to configure and compile

cd ../src switch to the kaldi/src directory

./configure kaldi configuration before running

make kaldi compile

The make process is relatively time-consuming, when the log finally shows

echo Done

Done

It succeeded.

During the period, you may encounter various error messages. When the error is reported, the component is missing or the component is incomplete, if it prompts that the component is missing

Install the corresponding components. If you find that an error is reported after the installation, the possible cause is that the component content is not fully downloaded.

Just download it.

to sum up

The above is a graphic tutorial for the installation and configuration of kaldi under Ubuntu introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message. The editor will reply to you in time. Thank you very much for your support to the ZaLou.Cn website!

Recommended Posts

Kaldi installation and configuration graphic tutorials under Ubuntu
DLNA/UPnP Server installation and configuration under Ubuntu 12.04
Ubuntu16.04 installation and simple configuration
Ubuntu PostgreSQL installation and configuration
Ubuntu16.04 mirror complete installation and configuration tutorial under VMware
Redis installation under ubuntu and windows
Java-JDK installation and configuration under CentOS
Ubuntu 16.04 installation graphic tutorial under VMware 12
Ubuntu 19.1 installation and configuration Chinese environment
Configuration and beautification after Ubuntu installation (1)
Nginx installation and configuration load (ubuntu12.04)
Ubuntu configuration source and installation software
CentOS 7 system installation and configuration graphic tutorial
Tomcat installation and configuration under CentOS 7 (Tomcat startup)
MySQL 8.0 installation, deployment and configuration under CentOS 6/7
Installation and uninstallation of CUDA under Ubuntu 16.04
Ubuntu18.04 Server version installation and use (graphic)
Detailed explanation of quick installation and configuration of Subversion (SVN) under Ubuntu
Debian and Ubuntu installation source configuration file description
CentOS 6.5 system installation and configuration graphic tutorial (detailed graphic)
OpenMPI-Ubuntu installation and configuration
Installation of pulseaudio and API usage under Ubuntu 12.04
Virtual machine installation and configuration ubuntu shared folder_
Ubuntu introduction and installation
[python] python2 and python3 under ubuntu
LNMP installation under Ubuntu
Network configuration under Ubuntu
Installation and configuration of rsync server under CentOS 6.5
Basic configuration and common software installation after ubuntu 18.04 installation
Installation, configuration and uninstallation of GitLab in Ubuntu19.1
Ubuntu12 step-by-step installation and configuration (system, FTP, TELNET.. settings)
Common exceptions and solutions for Ubuntu system installation and configuration
Installation and usage instructions of rz/sz command under ubuntu
Centos mysql installation and configuration
Centos7 installation and configuration prometheus
CentOS 7 installation and configuration PPTP
CentOS installation and configuration cmake
Centos7.5 installation and configuration MongoDB4.0.4
CentOS 7 installation and configuration PPTP
ubuntu19.04 installation tutorial (graphic steps)
Ubuntu16.04 install SVN and configuration
Detailed explanation of Spark installation and configuration tutorial under centOS7
Centos7 installation and configuration of Jenkins
Ubuntu environment variables and ADB configuration
Installation of deb package under Ubuntu
Centos7 hadoop cluster installation and configuration
Ubuntu16.04 configuration OpenCV3.4.2 and basic use
Install and deploy Gerrit under Ubuntu
Install MySQL under Ubuntu 18.04 (graphic tutorial)
Install nodejs and npm under Ubuntu 16.04
Ubuntu 20.04 CUDA&amp;cuDNN installation method (graphic tutorial)
CentOS 7 Tomcat service installation and configuration
CentOS NTP server installation and configuration
Installation of Docker CE under Ubuntu
Ubuntu18.04 installation Anaconda3 and VSCode guide
Coexistence of CUDA8.0 and CUDA9.0 under Ubuntu 16.04
Erlang 20.2 installation and deployment under CentOS 7
Compile and install QEMU under Ubuntu
Centos7 mysql database installation and configuration
Ubuntu16.04 mirror complete installation tutorial under VMware
ubuntu Docker installation and deployment of Rancher