diff --git a/.gitmodules b/.gitmodules index 09157900..0089ed4c 100644 --- a/.gitmodules +++ b/.gitmodules @@ -58,3 +58,7 @@ [submodule "openfst"] path = openfst url = https://github.com/alphacep/openfst +[submodule "kaldi"] + path = kaldi + url = https://github.com/alphacep/kaldi + branch = vosk diff --git a/Makefile.in b/Makefile.in index dd618402..133ff99c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -422,6 +422,29 @@ $(eval $(call rules-autoconf,openfst,32)) $(eval $(call rules-autoconf,openfst,64)) +## +## kaldi +## + +KALDI_SOURCE_ARGS = \ + --exclude src/**/CMakeLists.txt \ + +KALDI_CMAKE_ARGS = \ + -DKALDI_VERSION=5.5-proton \ + -DBLAS_LIBRARIES=-lblas \ + -DLAPACK_LIBRARIES=-llapack \ + -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ + -DBUILD_SHARED_LIBS=OFF \ + -DKALDI_BUILD_TEST=OFF \ + -DKALDI_BUILD_EXE=OFF \ + +KALDI_DEPENDS = openfst + +$(eval $(call rules-source,kaldi,$(SRCDIR)/kaldi)) +$(eval $(call rules-cmake,kaldi,32)) +$(eval $(call rules-cmake,kaldi,64)) + + ## ## wine ## diff --git a/kaldi b/kaldi new file mode 160000 index 00000000..a25f216f --- /dev/null +++ b/kaldi @@ -0,0 +1 @@ +Subproject commit a25f216f5ce4eec5e45a6ab7651e20c9840a05cd