Spaces:
Runtime error
Runtime error
Commit
•
a02c45c
1
Parent(s):
9a4f75d
Create Dockerfile
Browse files- Dockerfile +13 -0
Dockerfile
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM alphacep/kaldi-vosk-server:latest
|
2 |
+
|
3 |
+
ENV VOSK_SERVER_PORT 7860
|
4 |
+
RUN mkdir /opt/vosk-model-en \
|
5 |
+
&& cd /opt/vosk-model-en \
|
6 |
+
&& wget -q https://alphacephei.com/vosk/models/vosk-model-vn-0.4.zip \
|
7 |
+
&& unzip vosk-model-vn-0.4.zip \
|
8 |
+
&& mv vosk-model-vn-0.4 model \
|
9 |
+
&& rm -rf vosk-model-vn-0.4.zip
|
10 |
+
|
11 |
+
EXPOSE 2700
|
12 |
+
WORKDIR /opt/vosk-server/websocket
|
13 |
+
CMD [ "python3", "./asr_server.py", "/opt/vosk-model-en/model" ]
|