Skip to content

Commit 3f5d3b5

Browse files
committed
Use piper-phonimize for onnxruntime
1 parent 64e62d2 commit 3f5d3b5

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

Dockerfile

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,7 @@ RUN curl -L "https://github.com/gabime/spdlog/archive/refs/tags/v${SPDLOG_VERSIO
2424

2525
RUN mkdir -p "lib/Linux-$(uname -m)"
2626

27-
ARG ONNXRUNTIME_VERSION='1.14.1'
28-
RUN if [ "${TARGETARCH}${TARGETVARIANT}" = 'amd64' ]; then \
29-
ONNXRUNTIME_ARCH='x64'; \
30-
else \
31-
ONNXRUNTIME_ARCH="$(uname -m)"; \
32-
fi && \
33-
curl -L "https://github.com/microsoft/onnxruntime/releases/download/v${ONNXRUNTIME_VERSION}/onnxruntime-linux-${ONNXRUNTIME_ARCH}-${ONNXRUNTIME_VERSION}.tgz" | \
34-
tar -C "lib/Linux-$(uname -m)" -xzvf - && \
35-
mv "lib/Linux-$(uname -m)"/onnxruntime-* \
36-
"lib/Linux-$(uname -m)/onnxruntime"
37-
27+
# Use pre-compiled Piper phonemization library (includes onnxruntime)
3828
ARG PIPER_PHONEMIZE_VERSION='1.0.0'
3929
RUN mkdir -p "lib/Linux-$(uname -m)/piper_phonemize" && \
4030
curl -L "https://github.com/rhasspy/piper-phonemize/releases/download/v${PIPER_PHONEMIZE_VERSION}/libpiper_phonemize-${TARGETARCH}${TARGETVARIANT}.tar.gz" | \

0 commit comments

Comments
 (0)