josemarcosrf / pyvosk-rpi

Vosk Docker Images for Raspberry Pi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vosk Server Docker for RPI

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.


Structure

This repo contains 3 docker images:

How To

Building the docker images

⚠️ Some python images might have trouble building due to an old libseccomp2 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

About

Vosk Docker Images for Raspberry Pi


Languages

Language:Shell 42.5%Language:Makefile 36.0%Language:Python 21.6%