build: Add and build Vosk submodule.

This commit is contained in:
Bernhard Kölbl 2023-06-28 12:04:05 +02:00 committed by Arkadiusz Hiler
parent 265c5cf4dc
commit 12e3262ec7
3 changed files with 19 additions and 1 deletions

3
.gitmodules vendored
View File

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

View File

@ -445,6 +445,20 @@ $(eval $(call rules-cmake,kaldi,32))
$(eval $(call rules-cmake,kaldi,64))
##
## vosk
##
VOSK_CMAKE_ARGS = \
-DBUILD_SHARED_LIBS=ON \
VOSK_DEPENDS = openfst kaldi
$(eval $(call rules-source,vosk,$(SRCDIR)/vosk-api))
$(eval $(call rules-cmake,vosk,32))
$(eval $(call rules-cmake,vosk,64))
##
## wine
##
@ -477,7 +491,7 @@ WINE_CONFIGURE_ARGS64 = --enable-win64 \
VKD3D_PE_CFLAGS="-I$(VULKAN_HEADERS_DST64)/include -I$(VKD3D_DST64)/include/vkd3d" \
VKD3D_PE_LIBS="-L$(VKD3D_DST64)/bin -l:libvkd3d-1.dll -l:libvkd3d-shader-1.dll"
WINE_DEPENDS = gst_orc gstreamer gst_base vkd3d
WINE_DEPENDS = gst_orc gstreamer gst_base vkd3d openfst kaldi vosk
$(eval $(call rules-source,wine,$(SRCDIR)/wine))
$(eval $(call rules-autoconf,wine,32))

1
vosk-api Submodule

@ -0,0 +1 @@
Subproject commit 12f29a3415e4967e088ed09202bfb0007e5a1787