build: Add and build Kaldi submodule.

This commit is contained in:
Bernhard Kölbl 2023-06-28 12:02:05 +02:00 committed by Arkadiusz Hiler
parent 6ce9c96f72
commit 21a009784a
3 changed files with 28 additions and 0 deletions

4
.gitmodules vendored
View File

@ -62,3 +62,7 @@
[submodule "openfst"] [submodule "openfst"]
path = openfst path = openfst
url = https://github.com/alphacep/openfst url = https://github.com/alphacep/openfst
[submodule "kaldi"]
path = kaldi
url = https://github.com/alphacep/kaldi
branch = vosk

View File

@ -441,6 +441,29 @@ $(eval $(call rules-configure,openfst,i386,unix))
$(eval $(call rules-configure,openfst,x86_64,unix)) $(eval $(call rules-configure,openfst,x86_64,unix))
##
## 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,i386,unix))
$(eval $(call rules-cmake,kaldi,x86_64,unix))
## ##
## wine ## wine
## ##

1
kaldi Submodule

@ -0,0 +1 @@
Subproject commit a25f216f5ce4eec5e45a6ab7651e20c9840a05cd