Skip to content

Commit

Permalink
Fix nanoTTS
Browse files Browse the repository at this point in the history
  • Loading branch information
synesthesiam committed Dec 28, 2021
1 parent 1214005 commit 46f9e8e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
14 changes: 9 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN --mount=type=cache,id=apt-build,target=/var/cache/apt \
mkdir -p /var/cache/apt/${TARGETARCH}${TARGETVARIANT}/archives/partial && \
apt-get update && \
apt-get install --yes --no-install-recommends \
build-essential python3 python3-venv python3-dev
build-essential python3 python3-venv python3-dev wget

# Install extra Debian build packages added from ./configure
COPY build_packages /build_packages
Expand Down Expand Up @@ -65,6 +65,12 @@ RUN --mount=type=cache,id=pip-extras,target=/root/.cache/pip \
-f 'https://download.pytorch.org/whl/cpu/torch_stable.html' ; \
fi

# Install prebuilt nanoTTS
RUN mkdir -p /nanotts && \
wget -O - --no-check-certificate \
"https://github.com/synesthesiam/prebuilt-apps/releases/download/v1.0/nanotts-20200520_${TARGETARCH}${TARGETVARIANT}.tar.gz" | \
tar -C /nanotts -xzf -

# -----------------------------------------------------------------------------

FROM debian:bullseye as run
Expand All @@ -85,10 +91,8 @@ RUN --mount=type=cache,id=apt-run,target=/var/cache/apt \
apt-get update && \
cat /packages | xargs apt-get install --yes --no-install-recommends

RUN --mount=type=cache,id=apt-run,target=/var/cache/apt \
if [ "${TARGETARCH}${TARGETVARIANT}" = 'armv7' ]; then \
apt-get install --yes --no-install-recommends llvm libatlas3-base libgfortran5; \
fi
# Copy nanotts
COPY --from=build /nanotts/ /usr/

# Clean up
RUN rm -f /etc/apt/apt.conf.d/01cache
Expand Down
2 changes: 1 addition & 1 deletion larynx/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
1.0.1
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
gruut~=2.0.0
gruut~=2.1.0
hypercorn~=0.11.0
quart~=0.15.0
quart-cors~=0.5.0
Expand Down
3 changes: 2 additions & 1 deletion scripts/build-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ if [[ -n "$1" ]]; then
done
else
# All languages
languages+=('ar' 'bn' 'ca' 'cs' 'de' 'el' 'en' 'es' 'fi' 'fr' 'gu' 'hi' 'hu' 'it' 'ja' 'kn' 'ko' 'mr' 'nl' 'pa' 'ru' 'sv' 'sw' 'ta' 'te' 'tr' 'zh')
# languages+=('ar' 'bn' 'ca' 'cs' 'de' 'el' 'en' 'es' 'fi' 'fr' 'gu' 'hi' 'hu' 'it' 'ja' 'kn' 'ko' 'mr' 'nl' 'pa' 'ru' 'sv' 'sw' 'ta' 'te' 'tr' 'zh')
languages+=('ar' 'bn' 'ca' 'cs' 'de' 'el' 'en' 'es' 'fi' 'fr' 'gu' 'hi' 'hu' 'it' 'kn' 'ko' 'mr' 'nl' 'pa' 'ru' 'sv' 'sw' 'ta' 'te' 'tr' 'zh')
fi


Expand Down

0 comments on commit 46f9e8e

Please sign in to comment.