alphacep / vosk-api

Offline speech recognition API for Android, iOS, Raspberry Pi and servers with Python, Java, C# and Node
Apache License 2.0
8.16k stars 1.12k forks source link

Plug custom model into Vosk docker container #1563

Open svankirk opened 7 months ago

svankirk commented 7 months ago

How do you have a docker container vosc server load with a custom library? I want to to use vosk-model-en-us-0.42-gigaspeech Instead of the default. Is this possible?

nshmyrev commented 7 months ago

You can map your host folder to container folder with -v. Something like

docker -v /opt/server/giga-model:/opt/vosk-model-en/model -p 2700 alphacep/kaldi-en