0.10.0
This commit is contained in:
parent
a2a3d2b3eb
commit
6864cf03b1
16 changed files with 260 additions and 70 deletions
13
Dockerfile
13
Dockerfile
|
|
@ -1,24 +1,17 @@
|
|||
FROM python:3.11-slim
|
||||
|
||||
ENV COQUI_TOS_AGREED=1
|
||||
ENV PRELOAD_MODEL=xtts
|
||||
# or PRELOAD_MODEL=parler-tts/parler_tts_mini_v0.1
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install --no-install-recommends -y curl git ffmpeg
|
||||
|
||||
#RUN git clone https://github.com/matatonic/openedai-speech /app
|
||||
RUN mkdir -p /app/voices
|
||||
# default clone of the default voice is really bad, use a better default
|
||||
COPY voices/alloy-alt.wav /app/voices/
|
||||
WORKDIR /app
|
||||
COPY *.txt /app/
|
||||
RUN pip install --no-cache -r requirements.txt
|
||||
COPY *.sh /app/
|
||||
RUN ./download_voices_tts-1.sh
|
||||
RUN ./download_voices_tts-1-hd.sh
|
||||
COPY *.py *.yaml *.md LICENSE /app/
|
||||
COPY *.sh *.py *.yaml *.md LICENSE config /app/
|
||||
|
||||
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
CMD python speech.py --host 0.0.0.0 --port 8000 --preload $PRELOAD_MODEL
|
||||
ENV CLI_COMMAND="python speech.py"
|
||||
CMD $CLI_COMMAND
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue