Skip to content

Commit 878add7

Browse files
authored
Merge pull request #368 from Resgrid/develop
RE1-T115 Docker Tts fix
2 parents 9bb4fe4 + 05ac8ee commit 878add7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Web/Resgrid.Web.Tts/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ RUN apt-get update \
2626
&& apt-get install -y --no-install-recommends \
2727
ffmpeg \
2828
libespeak-ng1 \
29-
espeak-ng-data \
3029
ca-certificates \
3130
curl \
3231
&& mkdir -p /usr/local/share/piper-voices \
@@ -35,7 +34,7 @@ RUN apt-get update \
3534
&& mv /tmp/piper/piper /usr/local/bin/piper \
3635
&& chmod +x /usr/local/bin/piper \
3736
&& find /tmp/piper -name '*.so*' -exec cp {} /usr/local/lib/ \; \
38-
&& if [ -d /tmp/piper/espeak-ng-data ]; then cp -R /tmp/piper/espeak-ng-data /usr/local/share/; fi \
37+
&& if [ -d /tmp/piper/espeak-ng-data ]; then cp -R /tmp/piper/espeak-ng-data /usr/share/; else ln -sf /usr/lib/x86_64-linux-gnu/espeak-ng-data /usr/share/espeak-ng-data; fi \
3938
&& ldconfig \
4039
&& rm -rf /tmp/piper /tmp/piper.tar.gz \
4140
&& curl -fsSL "https://huggingface.co/rhasspy/piper-voices/resolve/main/en/en_US/norman/medium/en_US-norman-medium.onnx" -o /usr/local/share/piper-voices/en_US-norman-medium.onnx \

0 commit comments

Comments
 (0)