This repo is intended to help in building vosk-api
docker images for Raspberry Pi by using docker buildx
in a cross-compile style.
i.e.: Build in a x86_64
linux machine for armv7
.
This repo contains 3 docker images:
-
Dockerfile: Image to test the
vosk-api
installation and to test thevosk-api
microphone example. -
Dockerfile.vosk-server: Image with Kaldi Vosk Server and an english model to build for
armv7
. -
Dockerfile.kaldi-en: Copy of alphacep kaldi-en (vosk-server (en)) to build anarmv7
version.
⚠️ Some python images might have trouble building due to an oldlibseccomp2
in some platforms. see: this FAQ
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 04EE7237B7D453EC 648ACFD622F3D138
echo "deb http://deb.debian.org/debian buster-backports main" | \
sudo tee -a /etc/apt/sources.list.d/buster-backports.list
sudo apt update
sudo apt install -t buster-backports libseccomp2
Regardless of the image we want to build, the first time, we need to initialize the multi-platform builder:
./scripts/init_multi-builder.sh
Once that's done, build with:
# To build the vosk-api microphone test example for armv7
make build-test-docker
# To build the vosk-server for armv7
make build-vosk-server-docker