alphacep / vosk-api

Offline speech recognition API for Android, iOS, Raspberry Pi and servers with Python, Java, C# and Node
Apache License 2.0
8.18k stars 1.12k forks source link

update for parameter change in fstproject when compiling from source #1664

Open snyderra opened 4 days ago

snyderra commented 4 days ago

When setting up kaldi from a git clone it uses openfst 1.8.3

I also had to run the following to update opengrm tools as well as the specified version doesen't play well with c17 vs c11 sed -i s/1.3.7/1.3.16/g $KALDI_ROOT/tools/extras/install_opengrm.sh

The compile package here depends on older parameters for fstproject  The line below makes the needed adjustments for openfst 1.8.3

cd vosk-model-en-us-0.22-compile && fdfind -e sh -e pl -epy | xargs grep -l "\-\-project_output=true" | xargs sed -i 's/--project_output=true/--project_type=output/g'

nshmyrev commented 4 days ago

We recommend to use our openfst fork (hardcoded in our build) https://github.com/alphacep/openfst, it has important fix for openfst speedup.