0.11.0 - Multilingual, new startup & dockerfiles, Fixes: #5, #6, #8, #9

This commit is contained in:
matatonic 2024-05-29 17:01:11 -04:00
parent 676f3f38c8
commit 2fcb7cef0f
17 changed files with 192 additions and 79 deletions

View file

@ -1,17 +1,22 @@
FROM python:3.11-slim
RUN apt-get update && \
apt-get install --no-install-recommends -y curl ffmpeg git && \
apt-get clean && rm -rf /var/lib/apt/lists/*
WORKDIR /app
RUN mkdir -p voices config
COPY requirements.txt /app/
RUN --mount=type=cache,target=/root/.cache/pip pip install -r requirements.txt
COPY speech.py openedai.py say.py *.sh README.md LICENSE /app/
COPY config/voice_to_speaker.default.yaml config/pre_process_map.default.yaml /app/config/
ARG PRELOAD_MODEL
ENV PRELOAD_MODEL=${PRELOAD_MODEL}
ENV TTS_HOME=voices
ENV HF_HOME=voices
ENV COQUI_TOS_AGREED=1
RUN apt-get update && \
apt-get install --no-install-recommends -y curl git ffmpeg
RUN mkdir -p /app/voices
WORKDIR /app
COPY *.txt /app/
RUN --mount=type=cache,target=/root/.cache/pip pip install -r requirements.txt
COPY *.sh *.py *.yaml *.md LICENSE config /app/
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
ENV CLI_COMMAND="python speech.py"
CMD $CLI_COMMAND
CMD bash startup.sh