Last active
September 23, 2022 08:32
-
-
Save chrisdone/2ad9718c574357395d7c0f1213f45bbb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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