- Step1: Install git on AWS Instance
- Step 2: Download Kaldi from GitHub
- Step 3: Read the Kaldi installation instructions and follow Option 1
- Step 4: go to tools/ and follow INSTALL instructions there.
- Step 5: go to src/ and follow INSTALL instructions there.
Iβll be using an AWS EC2 instance for the installation but you can do this directly on a linux machine. RedHat
Step1: Install git on AWS Instance
(Keep in mind that the yum install is only for red hat, for debian/ubuntu it would be apt-get install.)
https://cloudaffaire.com/how-to-install-git-in-aws-ec2-instance/
sudo yum update -y
sudo yum install git -y
Step 2: Download Kaldi from GitHub
https://kaldi-asr.org/doc/install.html
git clone https://github.com/kaldi-asr/kaldi.git kaldi --origin upstream
cd kaldi
git pull
Step 3: Read the Kaldi installation instructions and follow Option 1
https://github.com/kaldi-asr/kaldi/blob/master/INSTALL
[ec2-user@ip-172-31-6-113 kaldi]$ nano INSTALL
This is the official Kaldi INSTALL. Look also at INSTALL.md for the git mirror installation.
[Option 1 in the following does not apply to native Windows install, see windows/INSTALL or following Option 2]
Option 1 (bash + makefile):
Steps:
(1)
go to tools/ and follow INSTALL instructions there.
(2)
go to src/ and follow INSTALL instructions there.
Option 2 (cmake):
Go to cmake/ and follow INSTALL.md instructions there.
Note, it may not be well tested and some features are missing currently.
Step 4: go to tools/ and follow INSTALL instructions there.
https://github.com/kaldi-asr/kaldi/blob/master/tools/INSTALL
cd tools
[ec2-user@ip-172-31-6-113 tools]$ nano INSTALL
Check for dependencies and install missing items
[ec2-user@ip-172-31-6-113 tools]$ ./extras/check_dependencies.sh
[ec2-user@ip-172-31-6-113 tools]$ sudo yum install gcc-c++ automake autoconf patch sox gcc-gfortran libtool subversion
Check for dependencies and install missing items
[ec2-user@ip-172-31-6-113 tools]$ ./extras/check_dependencies.sh
[ec2-user@ip-172-31-6-113 tools]$ sudo yum install zlib-devel
Check for dependencies and install missing items
[ec2-user@ip-172-31-6-113 tools]$ ./extras/check_dependencies.sh
./extras/check_dependencies.sh: Intel MKL does not seem to be installed.
... Run extras/install_mkl.sh to install it. Some distros (e.g., Ubuntu 20.04) provide
... a version of MKL via the package manager, but verify that it is up-to-date.
... You can also use other matrix algebra libraries. For information, see:
... http://kaldi-asr.org/doc/matrixwrap.html
[ec2-user@ip-172-31-6-113 tools]$
Run make
[ec2-user@ip-172-31-6-113 tools]$ ./extras/install_mkl.sh
[ec2-user@ip-172-31-6-113 tools]$ make
Install IRSTLM: can be useful for interpolations when building LMs
***() Installation of IRSTLM finished successfully
***() Please source the tools/env.sh in your path.sh to enable it
[ec2-user@ip-172-31-6-113 tools]$
Step 5: go to src/ and follow INSTALL instructions there.
[ec2-user@ip-172-31-6-113 src]$ nano INSTALL
cd src
[ec2-user@ip-172-31-6-113 src]$ nano INSTALL
./configure --shared
make depend -j 8
make -j 8
Youβre Done!
history.txt
1 sudo yum update -y
2 sudo yum install git -y
3 git clone https://github.com/kaldi-asr/kaldi.git kaldi --origin upstream
4 cd kaldi
5 git pull
6 nano INSTALL
7 cd tools/
8 nano INSTALL
9 ./extras/check_dependencies.sh
10 sudo yum install gcc-c++ automake autoconf patch sox gcc-gfortran libtool subversion
11 ./extras/check_dependencies.sh
12 sudo yum install zlib-devel
13 ./extras/check_dependencies.sh
14 ./extras/install_mkl.sh
15 ./extras/check_dependencies.sh
16 make -j 8
17 ./extras/install_irstlm.sh
18 cd src/
19 ./configure --shared
20 make depend -j 8
21 make -j 8
Kaldi directory:
ubuntu@ip-172-31-6-144:~/kaldi$ tree -L 2
.
βββ CMakeLists.txt
βββ COPYING
βββ INSTALL
βββ README.md
βββ cmake
βΒ Β βββ FindBLAS.cmake
βΒ Β βββ FindCUB.cmake
βΒ Β βββ FindICU.cmake
βΒ Β βββ FindLAPACK.cmake
βΒ Β βββ FindNvToolExt.cmake
βΒ Β βββ INSTALL.md
βΒ Β βββ Utils.cmake
βΒ Β βββ VersionHelper.cmake
βΒ Β βββ gen_cmake_skeleton.py
βΒ Β βββ kaldi-config.cmake.in
βΒ Β βββ third_party
βββ docker
βΒ Β βββ README.md
βΒ Β βββ debian10-cpu
βΒ Β βββ debian9.8-cpu
βΒ Β βββ ubuntu16.04-gpu
βΒ Β βββ ubuntu18.04-cuda10.0
βββ egs
βΒ Β βββ README.txt
βΒ Β βββ aidatatang_200zh
βΒ Β βββ aishell
βΒ Β βββ aishell2
βΒ Β βββ ami
βΒ Β βββ an4
βΒ Β βββ apiai_decode
βΒ Β βββ aspire
βΒ Β βββ aurora4
βΒ Β βββ babel
βΒ Β βββ babel_multilang
βΒ Β βββ bentham
βΒ Β βββ bn_music_speech
βΒ Β βββ callhome_diarization
βΒ Β βββ callhome_egyptian
βΒ Β βββ casia_hwdb
βΒ Β βββ chime1
βΒ Β βββ chime2
βΒ Β βββ chime3
βΒ Β βββ chime4
βΒ Β βββ chime5
βΒ Β βββ chime6
βΒ Β βββ cifar
βΒ Β βββ cmu_cslu_kids
βΒ Β βββ cnceleb
βΒ Β βββ commonvoice
βΒ Β βββ csj
βΒ Β βββ dihard_2018
βΒ Β βββ fame
βΒ Β βββ farsdat
βΒ Β βββ fisher_callhome_spanish
βΒ Β βββ fisher_english
βΒ Β βββ fisher_swbd
βΒ Β βββ formosa
βΒ Β βββ gale_arabic
βΒ Β βββ gale_mandarin
βΒ Β βββ gigaspeech
βΒ Β βββ gop_speechocean762
βΒ Β βββ gp
βΒ Β βββ heroico
βΒ Β βββ hi_mia
βΒ Β βββ hkust
βΒ Β βββ hub4_english
βΒ Β βββ hub4_spanish
βΒ Β βββ iam
βΒ Β βββ iban
βΒ Β βββ icsi
βΒ Β βββ ifnenit
βΒ Β βββ libri_css
βΒ Β βββ librispeech
βΒ Β βββ lre
βΒ Β βββ lre07
βΒ Β βββ madcat_ar
βΒ Β βββ madcat_zh
βΒ Β βββ malach
βΒ Β βββ mandarin_bn_bc
βΒ Β βββ material
βΒ Β βββ mgb2_arabic
βΒ Β βββ mgb5
βΒ Β βββ mini_librispeech
βΒ Β βββ mobvoi
βΒ Β βββ mobvoihotwords
βΒ Β βββ multi_cn
βΒ Β βββ multi_en
βΒ Β βββ nsc
βΒ Β βββ opensat20
βΒ Β βββ ptb
βΒ Β βββ reverb
βΒ Β βββ rimes
βΒ Β βββ rm
βΒ Β βββ sad_rats
βΒ Β βββ sitw
βΒ Β βββ snips
βΒ Β βββ spanish_dimex100
βΒ Β βββ sprakbanken
βΒ Β βββ sprakbanken_swe
βΒ Β βββ sre08
βΒ Β βββ sre10
βΒ Β βββ sre16
βΒ Β βββ svhn
βΒ Β βββ swahili
βΒ Β βββ swbd
βΒ Β βββ tedlium
βΒ Β βββ thchs30
βΒ Β βββ tidigits
βΒ Β βββ timit
βΒ Β βββ tunisian_msa
βΒ Β βββ uw3
βΒ Β βββ voxceleb
βΒ Β βββ voxforge
βΒ Β βββ vystadial_cz
βΒ Β βββ vystadial_en
βΒ Β βββ wenetspeech
βΒ Β βββ wsj
βΒ Β βββ yesno
βΒ Β βββ yomdle_fa
βΒ Β βββ yomdle_korean
βΒ Β βββ yomdle_russian
βΒ Β βββ yomdle_tamil
βΒ Β βββ yomdle_zh
βΒ Β βββ zeroth_korean
βββ misc
βΒ Β βββ README.txt
βΒ Β βββ htk_conversion
βΒ Β βββ htk_decode_example
βΒ Β βββ htk_graph_creation_example
βΒ Β βββ logo
βΒ Β βββ maintenance
βΒ Β βββ papers
βββ scripts
βΒ Β βββ rnnlm
βΒ Β βββ wakeword
βββ src
βΒ Β βββ Doxyfile
βΒ Β βββ INSTALL
βΒ Β βββ Makefile
βΒ Β βββ NOTES
βΒ Β βββ TODO
βΒ Β βββ base
βΒ Β βββ bin
βΒ Β βββ chain
βΒ Β βββ chainbin
βΒ Β βββ configure
βΒ Β βββ cudadecoder
βΒ Β βββ cudadecoderbin
βΒ Β βββ cudafeat
βΒ Β βββ cudafeatbin
βΒ Β βββ cudamatrix
βΒ Β βββ decoder
βΒ Β βββ doc
βΒ Β βββ feat
βΒ Β βββ featbin
βΒ Β βββ fgmmbin
βΒ Β βββ fstbin
βΒ Β βββ fstext
βΒ Β βββ gmm
βΒ Β βββ gmmbin
βΒ Β βββ gst-plugin
βΒ Β βββ hmm
βΒ Β βββ itf
βΒ Β βββ ivector
βΒ Β βββ ivectorbin
βΒ Β βββ kaldi.mk
βΒ Β βββ kws
βΒ Β βββ kwsbin
βΒ Β βββ lat
βΒ Β βββ latbin
βΒ Β βββ lib
βΒ Β βββ lm
βΒ Β βββ lmbin
βΒ Β βββ makefiles
βΒ Β βββ matrix
βΒ Β βββ nnet
βΒ Β βββ nnet2
βΒ Β βββ nnet2bin
βΒ Β βββ nnet3
βΒ Β βββ nnet3bin
βΒ Β βββ nnetbin
βΒ Β βββ online
βΒ Β βββ online2
βΒ Β βββ online2bin
βΒ Β βββ onlinebin
βΒ Β βββ probe
βΒ Β βββ rnnlm
βΒ Β βββ rnnlmbin
βΒ Β βββ sgmm2
βΒ Β βββ sgmm2bin
βΒ Β βββ tfrnnlm
βΒ Β βββ tfrnnlmbin
βΒ Β βββ transform
βΒ Β βββ tree
βΒ Β βββ util
βββ tools
βΒ Β βββ ATLAS_headers
βΒ Β βββ CLAPACK
βΒ Β βββ INSTALL
βΒ Β βββ Makefile
βΒ Β βββ config
βΒ Β βββ cub -> cub-1.8.0
βΒ Β βββ cub-1.8.0
βΒ Β βββ cub-1.8.0.tar.gz
βΒ Β βββ env.sh
βΒ Β βββ extras
βΒ Β βββ install_pfile_utils.sh -> extras/install_pfile_utils.sh
βΒ Β βββ install_portaudio.sh -> extras/install_portaudio.sh
βΒ Β βββ install_speex.sh -> extras/install_speex.sh
βΒ Β βββ install_srilm.sh -> extras/install_srilm.sh
βΒ Β βββ irstlm
βΒ Β βββ openfst -> openfst-1.7.2
βΒ Β βββ openfst-1.7.2
βΒ Β βββ openfst-1.7.2.tar.gz
βΒ Β βββ sctk -> sctk-20159b5
βΒ Β βββ sctk-20159b5
βΒ Β βββ sctk-20159b5.tar.gz
βΒ Β βββ sph2pipe -> sph2pipe_v2.5
βΒ Β βββ sph2pipe-2.5.tar.gz
βΒ Β βββ sph2pipe_v2.5
βββ windows
βββ INSTALL.atlas
βββ INSTALL.md
βββ INSTALL.mkl
βββ NewGuidCmd.exe
βββ NewGuidCmd.exe.config
βββ cuda_7.0.props
βββ generate_solution.pl
βββ get_version.pl
βββ kaldiwin_atlas.props
βββ kaldiwin_mkl.props
βββ kaldiwin_openblas.props
βββ kaldiwin_win32.props
βββ openfstwin_debug.props
βββ openfstwin_debug_win32.props
βββ openfstwin_release.props
βββ openfstwin_release_win32.props
βββ portaudio.props
βββ portaudio_debug.props
βββ portaudio_release.props
βββ variables.props.dev
186 directories, 55 files
ubuntu@ip-172-31-6-144:~/kaldi$
Comments:
https://github.com/npovey/speech/discussions/categories/announcements