构建步骤写在 ./INSTALL 中,README 本身不含完整命令;Windows 非 Cygwin 环境需另看 windows/INSTALL;Fedora 41 及以后需先安装 lapack-devel 和 openfst-devel 等开发库
参见 ./INSTALL 构建工具包;运行示例系统参见 egs/README.txtREADME 未说明具体显存要求;在 ppc64le 上可配合 CUDA 使用,也支持 OpenBLAS、ATLAS 等 CPU 后端。
Kaldi 是经典开源语音识别工具包,提供从特征提取到解码的完整 ASR 训练与识别流程
Kaldi 是经典的语音识别工具库,提供声学建模、解码和说话人识别等完整流程,适合搭建语音转文字与说话人验证系统。
核心能力
- 提供完整语音识别训练与解码工具链
- 支持 Linux、Darwin、Cygwin 等 UNIX 系统构建
- 可交叉编译到 Android 与 Web Assembly 平台
- 依赖 OpenBLAS、ATLAS 或 CUDA 等数值计算后端
- 附带 egs 示例系统构建脚本供参考
容易踩的坑
暂无 release 数据(可能没有发版,或尚未同步)。
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
Kaldi Speech Recognition Toolkit
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 forums and mailing lists:
We have two different lists
- User list kaldi-help
- Developer list kaldi-developers:
To sign up to any of those mailing lists, go to http://kaldi-asr.org/forums.html:
Development pattern for contributors
- Create a personal fork of the main Kaldi repository in GitHub.
- Make your changes in a named branch different from
master, e.g. you create a branchmy-awesome-feature. - Generate a pull request through the Web interface of GitHub.
- As a general rule, please follow Google C++ Style Guide. There are a few exceptions in Kaldi. You can use the Google's cpplint.py to verify that your code is free of basic mistakes.
Platform specific notes
Fedora 41 (and later)
In order to build it on Fedora 41 using the libraries that are provided by the distro, you need to install the development libraries and dependencies with
sudo dnf install lapack-devel openfst-devel
then build the package as follows:
cmake -S ./ -Bbuild/Release -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DBuildForFedora=ON
cmake --build /home/gerhard/workspace/kaldi/build/Release
PowerPC 64bits little-endian (ppc64le)
- Kaldi is expected to work out of the box in RHEL >= 7 and Ubuntu >= 16.04 with OpenBLAS, ATLAS, or CUDA.
- CUDA drivers for ppc64le can be found at https://developer.nvidia.com/cuda-downloads.
- An IBM Redbook is available as a guide to install and configure CUDA.
Android
- Kaldi supports cross compiling for Android using Android NDK, clang++ and OpenBLAS.
- See this blog post for details.
Web Assembly
- Kaldi supports cross compiling for Web Assembly for in-browser execution using emscripten and OpenBLAS
- See this repo for a step-by-step description of the build process.