Skip to content

Instantly share code, notes, and snippets.

@chrisdone
Last active September 23, 2022 08:32
Show Gist options
  • Save chrisdone/2ad9718c574357395d7c0f1213f45bbb to your computer and use it in GitHub Desktop.
Save chrisdone/2ad9718c574357395d7c0f1213f45bbb to your computer and use it in GitHub Desktop.
FROM ubuntu:20.04
RUN apt-get update -y
RUN apt-get install -y python pip
COPY . /home/chris/Work/alphacephei/vosk-server
WORKDIR /home/chris/Work/alphacephei/vosk-server
RUN pip install -r requirements.txt && pip3 install sounddevice
RUN apt-get install -y libportaudio2
docker run -p 2700:2700 -v`pwd`/vosk-model-small-en-us-0.15/:/opt/vosk-model-en/model alphacep/kaldi-en:latest
docker image build . -f ~/Docker/alphacephei.Dockerfile -t alphacephei
docker run --privileged -v`pwd`:`pwd` -w`pwd`/websocket -it --rm --net=host alphacephei ./test_microphone.py -u ws://localhost:2700
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment