From 21a009784a586fa6eb75810b2ff17f13b5f0704f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernhard=20K=C3=B6lbl?= Date: Wed, 28 Jun 2023 12:02:05 +0200 Subject: [PATCH] build: Add and build Kaldi submodule. --- .gitmodules | 4 ++++ Makefile.in | 23 +++++++++++++++++++++++ kaldi | 1 + 3 files changed, 28 insertions(+) create mode 160000 kaldi diff --git a/.gitmodules b/.gitmodules index ce2e919b..a8b156f8 100644 --- a/.gitmodules +++ b/.gitmodules @@ -62,3 +62,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 2f10cd3a..1934dfa3 100644 --- a/Makefile.in +++ b/Makefile.in @@ -441,6 +441,29 @@ $(eval $(call rules-configure,openfst,i386,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 ## diff --git a/kaldi b/kaldi new file mode 160000 index 00000000..a25f216f --- /dev/null +++ b/kaldi @@ -0,0 +1 @@ +Subproject commit a25f216f5ce4eec5e45a6ab7651e20c9840a05cd