Total Pageviews

Wednesday, 1 April 2020

Kaldi Speech Recognition Toolkit

This is the official location of the Kaldi project. 

To build the toolkit: see ./INSTALL. These instructions are valid for UNIX systems including various flavors of Linux; Darwin; and Cygwin (has not been tested on more "exotic" varieties of UNIX). For Windows installation instructions (excluding Cygwin), see windows/INSTALL.
To run the example system builds, see egs/README.txt
If you encounter problems (and you probably will), please do not hesitate to contact the developers (see below). In addition to specific questions, please let us know if there are specific aspects of the project that you feel could be improved, that you find confusing, etc., and which missing features you most wish it had.

Kaldi information channels

For HOT news about Kaldi see the project site.
  • Info about the project, description of techniques, tutorial for C++ coding.
  • Doxygen reference of the C++ code.
------------------

Kaldi tutorial: Getting started

The first step is to download and install Kaldi. We will be using version 1 of the toolkit, so that this tutorial does not get out of date. However, be aware that the code and scripts in the "trunk" (which is always up to date) is easier to install and is generally better. If you use the "trunk" code you can also try to use the most recent scripts, which are in directory "egs/rm/s5", rather than the "s3" scripts mentioned in this tutorial. But be aware that if you do that some aspects of the tutorial may be out of date.
Assuming Git is installed, to get the latest code you can type
    git clone https://github.com/kaldi-asr/kaldi
Then cd to kaldi. Look at the INSTALL file and follow the instructions (it points you to two subdirectories). Look carefully at the output of the installation scripts, as they try to guide you what to do. Some installation errors are non-fatal, and the installation scripts will tell you so (i.e. there are some things it installs which are nice to have but are not really needed). The "best-case" scenario is that you do:
   cd kaldi/tools/; make; cd ../src; ./configure; make
and everything will just work; however, if this does not happen there are fallback plans (e.g. you may have to install some package on your machine, or run install_atlas.sh in tools/, or run some steps in tools/INSTALL manually, or provide options to the configure script in src/). If there are problems, there may be some information in The build process (how Kaldi is compiled) that will help you; otherwise, feel free to contact the maintainers (Other Kaldi-related resources (and how to get help)) and we will be happy to help.