https://github.com/mathquis/node-kaldi-online-nnet3-decoder
ASR online decoding using Kaldi NNet3 GrammarFST
https://github.com/mathquis/node-kaldi-online-nnet3-decoder
asr decoder kaldi nnet3 stt
Last synced: 5 months ago
JSON representation
ASR online decoding using Kaldi NNet3 GrammarFST
- Host: GitHub
- URL: https://github.com/mathquis/node-kaldi-online-nnet3-decoder
- Owner: mathquis
- Created: 2020-02-27T10:34:33.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-11T18:28:59.000Z (over 2 years ago)
- Last Synced: 2024-10-28T16:02:43.288Z (12 months ago)
- Topics: asr, decoder, kaldi, nnet3, stt
- Language: C++
- Size: 311 KB
- Stars: 7
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-kaldi-online-nnet3-decoder
Be aware that the decoder is designed for Kaldi "Grammar FST with on the fly parts"
https://kaldi-asr.org/doc/grammar.htmlThis module was put together for one of my side project. I'm not a C++ dev so it might not be perfectly functional.
Pull requests are welcome :)
## Compiling from source
A compiled version of Kaldi, OpenBLAS and OpenFST.
Set environment variable `KALDI_PATH` to your Kaldi root directory
### Windows
Requires CMake and Visual Studio 2017+ for Windows installed
- Download Kaldi source code from
- Extract in `${KALDI_PATH}`#### Compiling OpenBlas with LAPACK (static)
See: https://github.com/xianyi/OpenBLAS/wiki/How-to-use-OpenBLAS-in-Microsoft-Visual-Studio
- In WSL 2 (debian)
- Download OpenBlas source code from https://github.com/xianyi/OpenBLAS
- Extract in `${KALDI_PATH}/tool/openblas`
- `cd ${KALDI_PATH}/tool/openblas`
- `make BINARY=64 HOSTCC=gcc CC=x86_64-w64-mingw32-gcc FC=x86_64-w64-mingw32-gfortran CFLAGS='-static-libgcc -static-libstdc++ -static -ggdb' FFLAGS='-static' && mv -f libopenblas.dll.a openblas.lib`#### Compiling Kaldi (static AND shared)
./configure --static --shared --use-cuda=no --mathlib=OPENBLAS
make -j clean depend ; make biglib -j