Kaldi installation and its problem handling

Kaldi installation

  • You can download it through git. When the virtual machine cannot bypass the wall of github, you can go to GitHub from Windows to find the address that needs git, and then use gitee to clone the warehouse. Git can be performed by using the address of gitee in the virtual machine.
  • 1 Install dependent packages.
cd /home/kaldi/tools/
  • 2 Check the dependent packages. Install whichever is less
extras/check_dependencies.sh 
  • 3 Follow the prompts to install
  • 4 Then you can check how many processing units there are, for example, there are 4           
nproc
make -j 4
cd ../src
./configure
make depend -j 4
make -j 4
  • Determine whether the installation is successful (compilation)
cd ../egs/yesno/s5
./run.sh
  • The final display is as follows, which is considered successful
%WER0.00[0 /232,0ins,0 del, 0 sub ] exp/mono0a/decode_test_yesno/wer_10_0.0

problem solved

Error: c++: fatal error: Killed signal terminated program cc1plus

Reason: The memory of the virtual machine is too small

Solution: Change the virtual machine memory to 8G in VMware. ps: Is 4G okay? I don't know either. Looking at other people on the Internet, it seems to be OK

If the virtual machine network cannot connect to the external network git, the installation packages of CUB, OPENFST, SPH2PIPE_VERSION, and SCTK_GITHASH need to be downloaded by yourself.

If windows can bypass the wall, you can find the address of the installation package and download it. After downloading, put it in kaldi/tools

Download address : How to find the download address of CUB, OPENFST, SPH2PIPE_VERSION, SCTK_GITHASH installation package?

cd tools
vim Makefile

Take downloading SCTK as an example, find the version number and download address according to the content of the picture , replace $(SCTK_GITHASH) with the version number, and notice the version number and its notes in Figure 1 :

# 2.4.9 = 659bc36; 2.4.10 = d914e1b; 2.4.11 = 20159b5.
SCTK_GITHASH = 20159b5

We replace the download address we found in Figure 2 according to the version number, that is

https://github.com/usnistgov/SCTK/archive/20159b5.tar.gz

 Put this address into Windows, and the browser can download it. ps: If you don't go over the wall, you may not be able to download or the download speed will be slow.

Remember to put it in kaldi/tools after downloading. Other installation packages are similar to the download process.

Figure 1

 Figure II

Guess you like

Origin blog.csdn.net/weixin_42538665/article/details/123258828