Skip to content

Commit dd4ce86

Browse files
authored
Merge pull request #366 from Resgrid/develop
RE1-T115 Fixing TTS build
2 parents 37058d4 + 45d7475 commit dd4ce86

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Web/Resgrid.Web.Tts/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,16 @@ ARG PIPER_VERSION=v1.2.0
2525
RUN apt-get update \
2626
&& apt-get install -y --no-install-recommends \
2727
ffmpeg \
28+
libespeak-ng1 \
2829
ca-certificates \
2930
curl \
3031
&& mkdir -p /usr/local/share/piper-voices \
3132
&& curl -fsSL "https://github.com/rhasspy/piper/releases/download/${PIPER_VERSION}/piper_amd64.tar.gz" -o /tmp/piper.tar.gz \
3233
&& tar -xzf /tmp/piper.tar.gz -C /tmp \
3334
&& mv /tmp/piper/piper /usr/local/bin/piper \
3435
&& chmod +x /usr/local/bin/piper \
35-
&& find /tmp/piper -name 'libpiper_phonemize.so*' -exec cp {} /usr/local/lib/ \; \
36+
&& find /tmp/piper -name '*.so*' -exec cp {} /usr/local/lib/ \; \
37+
&& if [ -d /tmp/piper/espeak-ng-data ]; then cp -R /tmp/piper/espeak-ng-data /usr/local/share/; fi \
3638
&& ldconfig \
3739
&& rm -rf /tmp/piper /tmp/piper.tar.gz \
3840
&& 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)