Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install kaldi in Ubuntu

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

How to install kaldi in Ubuntu? Many novices are not very clear about this. In order to help you solve this problem, the following editor will explain it in detail. People with this need can come and learn. I hope you can gain something.

1. Install the virtual machine:

Download the virtual machine VMware and install it. The installation of the virtual machine is relatively simple. Baidu can install it on its own. I will not repeat it here.

2.Ubuntu operating system installation:

Download the Ubuntu image file, I choose the Ubuntu16.04 version of the thing.

3. Install the Ubuntu system on the virtual machine, which is described in detail as follows:

3.1 choose to create a new virtual machine after VMware installation is complete

3.2 Select the downloaded image file

3.3 Select the next step and set the system name and password

3.4 Click on the next step to set the installation location of the system, and here you can choose a larger disk.

3.5 continue to select the disk capacity in the next step. It is recommended to select a slightly larger disk capacity here, otherwise there will be an error of insufficient capacity in the kaldi data.

3.6 next, select custom hardware settings. It is recommended to adjust the memory and processor. The memory of my computer is 8G and 6G is set here.

Because kaldi datasets are generally large and memory-consuming at runtime, the number of processors is increased here according to the configuration of your computer.

Adjust accordingly

3.7 return to the previous page and click finish. Wait for VMware to install Ubuntu system automatically

Install kaldi under 4.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 required examples and the source code for running examples are available.

If ubuntu is not installed, git can be installed with the following command:

Sudo apt-get install git

After the download is completed, decompress it, find the compressed package of kaldi and right-click to extract it.

Description of the tools directory: the tools directory is all kaldi dependent packages. Egs provides instances for kaldi, which contain commonly used datasets running the

Source code, src directory is the source code of kaldi

4.4 kaldi compilation

4.4.1 make sure the following components are installed before compilation:

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

Install it using the following command:

Sudo apt-get install

4.4.2 go to the tools directory to compile

Cd kaldi/tools goes to the kaldi/tools directory

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

This process is slow, and some components are downloaded and installed the first time you do make.

4.4.3 go to the src directory to configure and compile

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

. / configure kaldi pre-run configuration

Make kaldi compilation

The make process is relatively time-consuming, and the log is finally displayed as

Echo Done

Done

It worked.

During this period, you may encounter a variety of error messages, such as missing components or incomplete components, if you are prompted to lack components.

Just install the corresponding component. If you find that the error is still reported after the installation, it may be due to the incomplete download of the component content, re-

Just download it.

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report