https://github.com/montrealcorpustools/kalpy
Pybind11 bindings for Kaldi
https://github.com/montrealcorpustools/kalpy
Last synced: about 1 year ago
JSON representation
Pybind11 bindings for Kaldi
- Host: GitHub
- URL: https://github.com/montrealcorpustools/kalpy
- Owner: MontrealCorpusTools
- License: mit
- Created: 2023-04-14T02:07:07.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-03T17:19:09.000Z (over 1 year ago)
- Last Synced: 2025-05-07T21:01:59.531Z (about 1 year ago)
- Language: C++
- Size: 87 MB
- Stars: 12
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kalpy
Pybind11 bindings for Kaldi for use in [Montreal Forced Aligner](montreal-forced-aligner.readthedocs.io/).
## Installation
Kalpy depends on Kaldi being built as shared libraries, and the easiest way to install is via conda-forge:
```
conda install -c conda-forge kalpy
```
Kalpy is also available on pip via the `kalpy-kaldi` package, but as this is only a binding library, it relies on Kaldi shared libraries being available. The `KALDI_ROOT` environment variable must be set to locate the shared libraries and header files. The easiest way to install the appropriately built kaldi libraries is via `conda install -c conda-forge kaldi`.
```
export KALDI_ROOT=/path/to/conda/enviornment
pip install kalpy-kaldi
```
## Usage
Two libraries are installed, `_kalpy` which contains low level bindings conforming to the original C++ style, and `kalpy` which is a more pythonic interface for higher level operations. The `kalpy` package is under heavy development and expansion to expose more functionality.