Skip to content

Commit e3fdc44

Browse files
authored
Merge pull request #11 from SEPIA-Framework/dev
v1.0.0 release candidate
2 parents c5d1484 + 70c062a commit e3fdc44

35 files changed

+1593
-335
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,4 @@ cython_debug/
140140
# PROJECT
141141
recordings/
142142
models/
143+
src/server_test.conf

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Changelog for SEPIA Speech-To-Text Server
2+
3+
## v1.0.0 - xx.xx.xxxx
4+
5+
- Added support for Coqui-STT and fully implemented hot-swapping of engines (currently: Vosk + Coqui)
6+
- Added new config file properties for models: 'engine', 'task', 'scorer', 'name'
7+
- Added new config file options for 'asr_engine': 'coqui' and 'dynamic'
8+
- Reworked config file loader to load only ONE file with all settings (no overwrites)
9+
- Added new common 'welcome' message options 'task' and Coqui specific 'hotWords' and 'scorer'
10+
- Accept alias names in 'welcome' message (streamlined with features): 'words_ts', 'phrase_list', 'hot_words' and 'external_scorer'
11+
- Reworked engine interface to load best model depending on: name, full language code (e.g.: de-DE), partial language code (e.g.: de), task or defaults
12+
- Added WebSocket connection heartbeat and timeout to config file
13+
- Improved error handling
14+
- Improved Vosk test script and added Coqui test
15+
- Updated HTML test and demo page
16+
17+
## v0.9.5 - 08.05.2021
18+
19+
- Release of new STT-Server

README.md

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,26 +27,33 @@ If you are using custom models built for the 2018 version you can easily [conver
2727

2828
## Integrated ASR Engines
2929

30-
- [Vosk](https://github.com/alphacep/vosk-api) - Status: Ready (Note: non-CUDA build). Includes tiny EN and DE models.
31-
- [Coqui](https://github.com/coqui-ai/STT) - Status: Planned.
30+
- [Vosk](https://github.com/alphacep/vosk-api) - Status: **Ready**. Includes tiny EN and DE models.
31+
- [Coqui](https://github.com/coqui-ai/STT) - Status: **Ready**. Includes basic English model w/o scorer.
3232
- [Scribosermo](https://gitlab.com/Jaco-Assistant/Scribosermo) - Status: [experimenting with setup](https://github.com/fquirin/scribosermo-stt-setup).
33+
- [Nvidia NeMo](https://github.com/NVIDIA/NeMo) - Status: experimenting with setup.
3334
- [TensorFlowASR](https://github.com/TensorSpeech/TensorFlowASR) - Status: Help wanted.
34-
- If you want to see additional engines please create a new [issue](https://github.com/SEPIA-Framework/sepia-stt-server/issues). Pull requests are welcome ;-)
35+
36+
If you want to see additional engines please create a new [issue](https://github.com/SEPIA-Framework/sepia-stt-server/issues). Pull requests are welcome ;-)
3537

3638
## Quick-Start with Python
3739

3840
The easiest way to get started is to use a Docker container for your platform. To install the server yourself please see the [code section README](src/README.md).
3941

4042
## Quick-Start with Docker
4143

42-
Choose your platform and pull the image. The smallest English and German Vosk models are already included:
43-
- ARM 32Bit (Raspberry Pi 4 32Bit OS): `docker pull sepia/stt-server:vosk_armv7l`
44-
- ARM 64Bit (RPi 4 64Bit, Jetson Nano(?)): `docker pull sepia/stt-server:vosk_aarch64`
45-
- x86 64Bit Systems (Desktop PCs, Linux server etc.): `docker pull sepia/stt-server:vosk_amd64`
44+
Simply pull the latest image (or choose an older one from the archive). The smallest English and German Vosk models and an English Coqui model (w/o scorer) are included:
45+
```
46+
`docker pull sepia/stt-server:latest`
47+
```
48+
49+
Supported platforms:
50+
- ARM 32Bit (Raspberry Pi 4 32Bit OS)
51+
- ARM 64Bit (RPi 4 64Bit, Jetson Nano(?))
52+
- x86 64Bit Systems (Desktop PCs, Linux server etc.)
4653

47-
After the download is complete simply start the container, for example via:
54+
After the download is finished you can start the container like this:
4855
```
49-
sudo docker run --rm --name=sepia-stt -p 20741:20741 -it sepia/stt-server:[image-tag]
56+
sudo docker run --rm --name=sepia-stt -p 20741:20741 -it sepia/stt-server:latest
5057
```
5158

5259
### Test via web interface
@@ -55,18 +62,19 @@ To test the server visit: `http://localhost:20741` if you are on the same machin
5562

5663
### Models
5764

58-
Currently the server supports [Vosk ASR models](https://alphacephei.com/vosk/models) and custom models (see "adapt" section below).
65+
Currently the server supports [Vosk ASR models](https://alphacephei.com/vosk/models), [Coqui-STT models](https://coqui.ai/models) and custom models (see "adapt" section below).
5966

6067
To **add new ASR models** create a shared volume for your container, place your model inside and update the server [config file](src/server.conf). The "adapt" section below has a more detailed example, but basically you can:
6168
- Add a volume to your container, e.g. use run flag: `-v [host-models-folder]:/home/admin/sepia-stt/models/my` (Note: use absolute path!)
6269
- Copy your model folder (e.g. 'vosk-model-small-es') and the server [config file](src/server.conf) to your new folder
63-
- Add model path and language code to the "[asr_models]" section in your config, e.g.: `path3=my/vosk-model-small-es` and `lang3=es-ES`
70+
- Add model path and language code to the "[asr_models]" section in your config, e.g.: `path3=my/vosk-model-small-es`, `lang3=es-ES`, `engine3=vosk` and optionally a "task" like `task3=smart-home`
6471
- Tell the server to use your new config via the flag: `--env SEPIA_STT_SETTINGS=/home/admin/sepia-stt/models/my/server.conf`
6572

6673
Included inside the Docker containers are:
67-
- [vosk-model-small-en-us-0.15](https://github.com/SEPIA-Framework/sepia-stt-server/releases/download/v0.9.5/vosk-model-small-en-us-0.15.zip) - Lightweight wideband model for Android and RPi - Apache 2.0 license
68-
- [vosk-model-small-de-0.15](https://github.com/SEPIA-Framework/sepia-stt-server/releases/download/v0.9.5/vosk-model-small-de-0.15.zip) - Lightweight wideband model for Android and RPi - Apache 2.0 license
69-
- [vosk-model-spk-0.4](https://github.com/SEPIA-Framework/sepia-stt-server/releases/download/v0.9.5/vosk-model-spk-0.4.zip) - Model for speaker identification (all models) - Apache 2.0 license
74+
- [vosk-model-small-en-us-0.15](https://github.com/SEPIA-Framework/sepia-stt-server/releases/download/v0.9.5/vosk-model-small-en-us-0.15.zip) - Vosk lightweight wideband model for Android and RPi - Apache 2.0 license
75+
- [vosk-model-small-de-0.15](https://github.com/SEPIA-Framework/sepia-stt-server/releases/download/v0.9.5/vosk-model-small-de-0.15.zip) - Vosk lightweight wideband model for Android and RPi - Apache 2.0 license
76+
- [vosk-model-spk-0.4](https://github.com/SEPIA-Framework/sepia-stt-server/releases/download/v0.9.5/vosk-model-spk-0.4.zip) - Vosk model for speaker identification (all models) - Apache 2.0 license
77+
- [coqui-model-en-1.0.0](https://github.com/SEPIA-Framework/sepia-stt-server/releases/download/v1.0.0/coqui-model-en-1.0.0.zip) - Coqui basic English model w/o scorer for testing - Apache 2.0 license
7078

7179
## Server Settings
7280

@@ -75,15 +83,15 @@ Most of the settings can be handled easily via the [server.conf settings file](s
7583
ENV variables:
7684
- `SEPIA_STT_SETTINGS`: Overwrites default path to settings file
7785

78-
Commandline options:
79-
- Use `python -m launch -h` to see all commandline options
86+
Command line options:
87+
- Use `python -m launch -h` to see all command line options
8088
- Use `python -m launch -s [path-to-file]` to use custom settings
8189

82-
NOTE: Commandline options always overrule the settings file but in most scenarios it makes sense to simply create a new settings file and use the `-s` flag.
90+
NOTE: Command line options always overrule the settings file but in most scenarios it makes sense to simply create a new settings file and use the `-s` flag.
8391

8492
## ASR Engine Settings
8593

86-
As soon as the server is running you can check the current setup via the HTTP REST interface: `http://localhost:20741//settings` or the test page (see quick-start above).
94+
As soon as the server is running you can check the current setup via the HTTP REST interface: `http://localhost:20741/settings` or the test page (see quick-start above).
8795

8896
Individual settings for the active engine can be changed on-the-fly during the WebSocket 'welcome' event. See the [API docs](API.md) file for more info or check out the 'Engine Settings' section of the test page.
8997

@@ -129,7 +137,7 @@ sudo docker run --rm --name=sepia-stt -p 20741:20741 -it \
129137
-v [host-models-folder]:/home/admin/sepia-stt/models/my \
130138
-v [host-share-folder]:/home/admin/sepia-stt/share \
131139
--env SEPIA_STT_SETTINGS=/home/admin/sepia-stt/share/my.conf \
132-
sepia/stt-server:[image-tag] \
140+
sepia/stt-server:latest \
133141
/bin/bash
134142
```
135143

engines/dynamic/Dockerfile

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
FROM debian:buster-slim
2+
3+
# Default to UTF-8 file.encoding
4+
ENV LANG C.UTF-8
5+
6+
# Run 1
7+
RUN echo 'Installing dependencies...' && \
8+
#
9+
# Dependencies
10+
apt-get update && \
11+
apt-get install -y --no-install-recommends \
12+
sudo git wget curl nano unzip zip procps \
13+
build-essential \
14+
python3-pip python3-dev python3-setuptools python3-wheel \
15+
#amd64 only? moved to adapt package: libatlas-base-dev \
16+
libffi-dev && \
17+
pip3 install pip --upgrade && \
18+
#
19+
# Fast-API
20+
pip3 install cffi && \
21+
pip3 install fastapi uvicorn[standard] aiofiles && \
22+
#
23+
# Clean up
24+
apt-get remove -y build-essential && \
25+
apt-get install libatomic1 && \
26+
apt-get clean && apt-get autoclean && apt-get autoremove -y && \
27+
#
28+
# Create user
29+
useradd --create-home --shell /bin/bash admin && \
30+
adduser admin sudo && \
31+
echo "admin ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
32+
#
33+
# ENV
34+
#SOME_ENV_VAR=/...my-stuff
35+
36+
# USER
37+
USER admin
38+
39+
# Run 1
40+
RUN echo "Installing Vosk ..." && \
41+
mkdir -p /home/admin/install && \
42+
mkdir -p /home/admin/sepia-stt/models && \
43+
mkdir -p /home/admin/kaldi-adapt-lm && \
44+
cd /home/admin/install && \
45+
if [ -n "$(uname -m | grep aarch64)" ]; then \
46+
echo "Downloading Vosk 0.3.42 for aarch64"; \
47+
#wget https://github.com/alphacep/vosk-api/releases/download/v0.3.42/vosk-0.3.42-py3-none-linux_aarch64.whl; \
48+
wget https://github.com/SEPIA-Framework/sepia-stt-server/releases/download/v1.0.0/vosk-0.3.42-py3-none-linux_aarch64.whl; \
49+
pip3 install vosk-0.3.42-py3-none-linux_aarch64.whl; \
50+
elif [ -n "$(uname -m | grep armv7l)" ]; then \
51+
echo "Downloading Vosk 0.3.42 for armv7l"; \
52+
#wget https://github.com/alphacep/vosk-api/releases/download/v0.3.42/vosk-0.3.42-py3-none-linux_armv7l.whl; \
53+
wget https://github.com/SEPIA-Framework/sepia-stt-server/releases/download/v1.0.0/vosk-0.3.42-py3-none-linux_armv7l.whl; \
54+
pip3 install vosk-0.3.42-py3-none-linux_armv7l.whl; \
55+
else \
56+
echo "Downloading Vosk 0.3.42 for x86_64"; \
57+
#wget https://github.com/alphacep/vosk-api/releases/download/v0.3.42/vosk-0.3.42-py3-none-linux_x86_64.whl; \
58+
wget https://github.com/SEPIA-Framework/sepia-stt-server/releases/download/v1.0.0/vosk-0.3.42-py3-none-linux_x86_64.whl; \
59+
pip3 install vosk-0.3.42-py3-none-linux_x86_64.whl; \
60+
fi && \
61+
#wget https://alphacephei.com/vosk/models/vosk-model-small-en-us-0.15.zip && \
62+
#wget https://alphacephei.com/vosk/models/vosk-model-small-de-0.15.zip && \
63+
#wget https://alphacephei.com/vosk/models/vosk-model-spk-0.4.zip && \
64+
wget https://github.com/SEPIA-Framework/sepia-stt-server/releases/download/v0.9.5/vosk-model-small-en-us-0.15.zip && \
65+
wget https://github.com/SEPIA-Framework/sepia-stt-server/releases/download/v0.9.5/vosk-model-small-de-0.15.zip && \
66+
wget https://github.com/SEPIA-Framework/sepia-stt-server/releases/download/v0.9.5/vosk-model-spk-0.4.zip && \
67+
unzip vosk-model-small-en-us-0.15.zip && \
68+
mv vosk-model-small-en-us-0.15 /home/admin/sepia-stt/models/vosk-model-small-en-us && \
69+
unzip vosk-model-small-de-0.15.zip && \
70+
mv vosk-model-small-de-0.15 /home/admin/sepia-stt/models/vosk-model-small-de && \
71+
unzip vosk-model-spk-0.4.zip && \
72+
mv vosk-model-spk-0.4 /home/admin/sepia-stt/models/vosk-model-spk && \
73+
#
74+
echo "Installing Coqui-STT ..." && \
75+
mkdir -p /home/admin/sepia-stt/models/coqui-model-en && \
76+
if [ -n "$(uname -m | grep aarch64)" ]; then \
77+
echo "Downloading Coqui-STT 1.3.0 for aarch64"; \
78+
#wget https://github.com/coqui-ai/STT/releases/download/v1.3.0/stt-1.3.0-cp37-cp37m-linux_aarch64.whl; \
79+
wget https://github.com/SEPIA-Framework/sepia-stt-server/releases/download/v1.0.0/stt-1.3.0-cp37-cp37m-linux_aarch64.whl; \
80+
pip3 install stt-1.3.0-cp37-cp37m-linux_aarch64.whl; \
81+
elif [ -n "$(uname -m | grep armv7l)" ]; then \
82+
echo "Downloading Coqui-STT 1.3.0 for armv7l"; \
83+
#wget https://github.com/coqui-ai/STT/releases/download/v1.3.0/stt-1.3.0-cp37-cp37m-linux_armv7l.whl; \
84+
wget https://github.com/SEPIA-Framework/sepia-stt-server/releases/download/v1.0.0/stt-1.3.0-cp37-cp37m-linux_armv7l.whl; \
85+
pip3 install stt-1.3.0-cp37-cp37m-linux_armv7l.whl; \
86+
else \
87+
echo "Downloading Coqui-STT 1.3.0 for x86_64"; \
88+
#wget https://github.com/coqui-ai/STT/releases/download/v1.3.0/stt-1.3.0-cp37-cp37m-manylinux_2_24_x86_64.whl; \
89+
wget https://github.com/SEPIA-Framework/sepia-stt-server/releases/download/v1.0.0/stt-1.3.0-cp37-cp37m-manylinux_2_24_x86_64.whl; \
90+
pip3 install stt-1.3.0-cp37-cp37m-manylinux_2_24_x86_64.whl; \
91+
fi && \
92+
#cd /home/admin/sepia-stt/models/coqui-model-en && \
93+
#wget https://coqui.gateway.scarf.sh/english/coqui/v1.0.0-large-vocab/model.tflite && \
94+
#cd /home/admin/install && \
95+
wget https://github.com/SEPIA-Framework/sepia-stt-server/releases/download/v1.0.0/coqui-model-en-1.0.0.zip && \
96+
unzip coqui-model-en-1.0.0.zip && \
97+
mv coqui-model-en-1.0.0 /home/admin/sepia-stt/models/coqui-model-en && \
98+
#
99+
echo "Installing SEPIA STT ..." && \
100+
SEPIA_STT_BRANCH=master && \
101+
git clone --single-branch --depth 1 -b $SEPIA_STT_BRANCH https://github.com/SEPIA-Framework/sepia-stt-server.git && \
102+
mv sepia-stt-server/src /home/admin/sepia-stt/server && \
103+
#
104+
echo "Installing Adapt-LM scripts ..." && \
105+
cd /home/admin && \
106+
ADAPT_LM_BRANCH=master && \
107+
git clone --single-branch --depth 1 -b $ADAPT_LM_BRANCH https://github.com/fquirin/kaldi-adapt-lm.git && \
108+
cd kaldi-adapt-lm && \
109+
bash 1-download-requirements.sh && \
110+
rm *.tar.gz && \
111+
#
112+
# Clean up install folder
113+
cd /home/admin && \
114+
sudo rm -rf /home/admin/install && \
115+
#
116+
# TODO: install proxy with self-signed certs?
117+
#
118+
echo "#!/bin/bash" > on-docker.sh && echo "cd sepia-stt/server && python3 -m launch" >> on-docker.sh
119+
120+
# Start
121+
WORKDIR /home/admin
122+
CMD bash on-docker.sh

engines/dynamic/build_container.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
version=latest
3+
if [ -n "$1" ]; then
4+
version=$1
5+
fi
6+
if [ -n "$(uname -m | grep aarch64)" ]; then
7+
echo "Building 'dynamic' Docker container for $version_aarch64"
8+
sudo docker build --no-cache -t sepia/stt-server:"dynamic_$version_aarch64" .
9+
elif [ -n "$(uname -m | grep armv7l)" ]; then
10+
echo "Building 'dynamic' Docker container for $version_armv7l"
11+
sudo docker build --no-cache -t sepia/stt-server:"dynamic_$version_armv7l" .
12+
else
13+
# NOTE: x86 32bit build not supported atm
14+
echo "Building 'dynamic' Docker container for $version_amd64"
15+
sudo docker build --no-cache -t sepia/stt-server:"dynamic_$version_amd64" .
16+
fi
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
version=latest
3+
if [ -n "$1" ]; then
4+
version=$1
5+
fi
6+
sudo docker manifest create sepia/stt-server:latest \
7+
--amend "sepia/stt-server:dynamic_$version_aarch64" \
8+
--amend "sepia/stt-server:dynamic_$version_armv7l" \
9+
--amend "sepia/stt-server:dynamic_$version_amd64"
10+
11+
sudo docker manifest push sepia/stt-server:latest
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
IMAGE_TAG=latest
3+
sudo docker run --rm --name=sepia-stt-vosk -p 20741:20741 -it sepia/stt-server:$IMAGE_TAG /bin/bash
4+
#-v share:/home/admin/share
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
IMAGE_TAG=latest
3+
HOST_MODELS="$(realpath ~)/stt/models"
4+
HOST_SHARE="$(realpath ~)/stt/share"
5+
mkdir -p "$HOST_MODELS"
6+
mkdir -p "$HOST_SHARE"
7+
sudo docker run --rm --name=sepia-stt -p 20741:20741 -it \
8+
-v "$HOST_MODELS":/home/admin/sepia-stt/models/my \
9+
-v "$HOST_SHARE":/home/admin/sepia-stt/share \
10+
--env SEPIA_STT_SETTINGS=/home/admin/sepia-stt/share/my.conf \
11+
sepia/stt-server:$IMAGE_TAG \
12+
/bin/bash

engines/vosk/Dockerfile

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RUN echo 'Installing dependencies...' && \
1515
#amd64 only? moved to adapt package: libatlas-base-dev \
1616
libffi-dev && \
1717
#
18-
# Vosk and Fast-API
18+
# Fast-API
1919
pip3 install cffi && \
2020
pip3 install fastapi uvicorn[standard] aiofiles && \
2121
#
@@ -42,20 +42,20 @@ RUN echo "Installing Vosk ..." && \
4242
mkdir -p /home/admin/kaldi-adapt-lm && \
4343
cd /home/admin/install && \
4444
if [ -n "$(uname -m | grep aarch64)" ]; then \
45-
echo "Downloading Vosk 0.3.30 for aarch64"; \
46-
#wget https://github.com/alphacep/vosk-api/releases/download/0.3.30/vosk-0.3.30-py3-none-linux_aarch64.whl; \
47-
wget https://github.com/SEPIA-Framework/sepia-stt-server/releases/download/v0.9.5/vosk-0.3.30-py3-none-linux_aarch64.whl; \
48-
pip3 install vosk-0.3.30-py3-none-linux_aarch64.whl; \
45+
echo "Downloading Vosk 0.3.42 for aarch64"; \
46+
#wget https://github.com/alphacep/vosk-api/releases/download/v0.3.42/vosk-0.3.42-py3-none-linux_aarch64.whl; \
47+
wget https://github.com/SEPIA-Framework/sepia-stt-server/releases/download/v1.0.0/vosk-0.3.42-py3-none-linux_aarch64.whl; \
48+
pip3 install vosk-0.3.42-py3-none-linux_aarch64.whl; \
4949
elif [ -n "$(uname -m | grep armv7l)" ]; then \
50-
echo "Downloading Vosk 0.3.30 for armv7l"; \
51-
#wget https://github.com/alphacep/vosk-api/releases/download/0.3.30/vosk-0.3.30-py3-none-linux_armv7l.whl; \
52-
wget https://github.com/SEPIA-Framework/sepia-stt-server/releases/download/v0.9.5/vosk-0.3.30-py3-none-linux_armv7l.whl; \
53-
pip3 install vosk-0.3.30-py3-none-linux_armv7l.whl; \
50+
echo "Downloading Vosk 0.3.42 for armv7l"; \
51+
#wget https://github.com/alphacep/vosk-api/releases/download/v0.3.42/vosk-0.3.42-py3-none-linux_armv7l.whl; \
52+
wget https://github.com/SEPIA-Framework/sepia-stt-server/releases/download/v1.0.0/vosk-0.3.42-py3-none-linux_armv7l.whl; \
53+
pip3 install vosk-0.3.42-py3-none-linux_armv7l.whl; \
5454
else \
55-
echo "Downloading Vosk 0.3.30 for x86_64"; \
56-
#wget https://github.com/alphacep/vosk-api/releases/download/0.3.30/vosk-0.3.30-py3-none-linux_x86_64.whl; \
57-
wget https://github.com/SEPIA-Framework/sepia-stt-server/releases/download/v0.9.5/vosk-0.3.30-py3-none-linux_x86_64.whl; \
58-
pip3 install vosk-0.3.30-py3-none-linux_x86_64.whl; \
55+
echo "Downloading Vosk 0.3.42 for x86_64"; \
56+
#wget https://github.com/alphacep/vosk-api/releases/download/v0.3.42/vosk-0.3.42-py3-none-linux_x86_64.whl; \
57+
wget https://github.com/SEPIA-Framework/sepia-stt-server/releases/download/v1.0.0/vosk-0.3.42-py3-none-linux_x86_64.whl; \
58+
pip3 install vosk-0.3.42-py3-none-linux_x86_64.whl; \
5959
fi && \
6060
#wget https://alphacephei.com/vosk/models/vosk-model-small-en-us-0.15.zip && \
6161
#wget https://alphacephei.com/vosk/models/vosk-model-small-de-0.15.zip && \

engines/vosk/build_container.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
#!/bin/bash
2-
# TODO: make version number variable - add '--no-cache' ?
32
if [ -n "$(uname -m | grep aarch64)" ]; then
43
echo "Building Vosk Docker container for aarch64"
5-
sudo docker build -t sepia/stt-server:vosk_aarch64 .
4+
sudo docker build --no-cache -t sepia/stt-server:vosk_aarch64 .
65
elif [ -n "$(uname -m | grep armv7l)" ]; then
76
echo "Building Vosk Docker container for armv7l"
8-
sudo docker build -t sepia/stt-server:vosk_armv7l .
7+
sudo docker build --no-cache -t sepia/stt-server:vosk_armv7l .
98
else
109
# NOTE: x86 32bit build not supported atm
1110
echo "Building Vosk Docker container for amd64"
12-
sudo docker build -t sepia/stt-server:vosk_amd64 .
11+
sudo docker build --no-cache -t sepia/stt-server:vosk_amd64 .
1312
fi

0 commit comments

Comments
 (0)