Closed yurivict closed 6 months ago
You have to use vosk branch in alphacep/kaldi, not master branch. See the build scripts.
@nshmyrev
The vosk branch in alphacep/kaldi fails to build:
In file included from /usr/ports/audio/kaldi-vosk/work/kaldi-2b69aed/src/fstext/grammar-context-fst.cc:20:
In file included from /usr/ports/audio/kaldi-vosk/work/kaldi-2b69aed/src/fstext/../fstext/grammar-context-fst.h:51:
In file included from /usr/ports/audio/kaldi-vosk/work/kaldi-2b69aed/src/fstext/../fstext/deterministic-fst.h:333:
In file included from /usr/ports/audio/kaldi-vosk/work/kaldi-2b69aed/src/fstext/deterministic-fst-inl.h:25:
In file included from /usr/ports/audio/kaldi-vosk/work/kaldi-2b69aed/src/fstext/../fstext/fstext-utils.h:425:
In file included from /usr/ports/audio/kaldi-vosk/work/kaldi-2b69aed/src/fstext/../fstext/fstext-utils-inl.h:29:
In file included from /usr/ports/audio/kaldi-vosk/work/kaldi-2b69aed/src/fstext/../fstext/pre-determinize.h:94:
/usr/ports/audio/kaldi-vosk/work/kaldi-2b69aed/src/fstext/../fstext/pre-determinize-inl.h:238:21: error: no type named 'iterator' in 'fst::SymbolTable'
for (SymbolTable::iterator siter = symTable->begin(); siter != symTable->end(); ++siter) {
~~~~~~~~~~~~~^
/usr/ports/audio/kaldi-vosk/work/kaldi-2b69aed/src/fstext/../fstext/pre-determinize-inl.h:238:48: error: no member named 'begin' in 'fst::SymbolTable'
for (SymbolTable::iterator siter = symTable->begin(); siter != symTable->end(); ++siter) {
~~~~~~~~ ^
/usr/ports/audio/kaldi-vosk/work/kaldi-2b69aed/src/fstext/../fstext/pre-determinize-inl.h:238:76: error: no member named 'end' in 'fst::SymbolTable'
for (SymbolTable::iterator siter = symTable->begin(); siter != symTable->end(); ++siter) {
~~~~~~~~ ^
In file included from /usr/ports/audio/kaldi-vosk/work/kaldi-2b69aed/src/fstext/grammar-context-fst.cc:20:
In file included from /usr/ports/audio/kaldi-vosk/work/kaldi-2b69aed/src/fstext/../fstext/grammar-context-fst.h:51:
In file included from /usr/ports/audio/kaldi-vosk/work/kaldi-2b69aed/src/fstext/../fstext/deterministic-fst.h:333:
In file included from /usr/ports/audio/kaldi-vosk/work/kaldi-2b69aed/src/fstext/deterministic-fst-inl.h:25:
In file included from /usr/ports/audio/kaldi-vosk/work/kaldi-2b69aed/src/fstext/../fstext/fstext-utils.h:425:
/usr/ports/audio/kaldi-vosk/work/kaldi-2b69aed/src/fstext/../fstext/fstext-utils-inl.h:378:21: error: no type named 'iterator' in 'fst::SymbolTable'
for (SymbolTable::iterator iter = symtab.begin();
~~~~~~~~~~~~~^
/usr/ports/audio/kaldi-vosk/work/kaldi-2b69aed/src/fstext/../fstext/fstext-utils-inl.h:378:44: error: no member named 'begin' in 'fst::SymbolTable'
for (SymbolTable::iterator iter = symtab.begin();
~~~~~~ ^
/usr/ports/audio/kaldi-vosk/work/kaldi-2b69aed/src/fstext/../fstext/fstext-utils-inl.h:379:22: error: no member named 'end' in 'fst::SymbolTable'
iter != symtab.end();
~~~~~~ ^
6 errors generated.
openfst-1.8.2.20221207 clang-16 FreeBSD 13.2
You need to use our openfst as well, see the build instructions:
https://github.com/alphacep/vosk-api/blob/master/travis/Dockerfile.manylinux
Same as #1082
Build fails:
rev. aba8497 kaldi rev. 21ae411 (last revision, there are no tags in the repository) clang-16 FreeBSD 13.2