Skip to content

Instantly share code, notes, and snippets.

@lfzawacki
Created December 20, 2022 19:01
Show Gist options
  • Save lfzawacki/c6724e92e21896416c8e4bd07e964924 to your computer and use it in GitHub Desktop.
Save lfzawacki/c6724e92e21896416c8e4bd07e964924 to your computer and use it in GitHub Desktop.
Vosk Server Dockerfile
FROM alphacep/kaldi-vosk-server:latest
RUN mkdir /opt/vosk-model-pt_BR \
&& cd /opt/vosk-model-pt_BR \
&& wget -q https://alphacephei.com/vosk/models/vosk-model-pt-fb-v0.1.1-20220516_2113.zip \
&& unzip vosk-model-pt-fb-v0.1.1-20220516_2113.zip \
&& mv vosk-model-pt-fb-v0.1.1-20220516_2113 model \
&& rm -rf vosk-model-pt-fb-v0.1.1-20220516_2113.zip
EXPOSE 2700
WORKDIR /opt/vosk-server/websocket
CMD [ "python3", "./asr_server.py", "/opt/vosk-model-pt_BR/model" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment