added openvoice container

This commit is contained in:
Dobromir Popov
2024-01-29 11:55:33 +02:00
parent 4078ed67fe
commit 7bb857a384
6 changed files with 62 additions and 1 deletions

21
tts/openvoice/Dockerfile Normal file
View File

@ -0,0 +1,21 @@
# Use an official Python runtime as a parent image
FROM python:3.8-slim
# Set the working directory in the container
WORKDIR /app
# Clone the repository
RUN apt-get update && \
apt-get install -y git aria2 unzip && \
git clone -b dev https://github.com/camenduru/OpenVoice /app && \
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/camenduru/OpenVoice/resolve/main/checkpoints_1226.zip -d /app -o checkpoints_1226.zip && \
unzip /app/checkpoints_1226.zip -d /app
# Install any needed packages
RUN pip install gradio==3.50.2 langid faster-whisper whisper-timestamped unidecode eng-to-ipa pypinyin cn2an
# Make port available to the world outside this container
EXPOSE 7860
# Run openvoice_app.py when the container launches
CMD ["python", "openvoice_app.py", "--share"]