added openvoice container
This commit is contained in:
parent
4078ed67fe
commit
7bb857a384
4
.gitignore
vendored
4
.gitignore
vendored
@ -4,4 +4,6 @@ rec/*
|
|||||||
*/__pycache__/*
|
*/__pycache__/*
|
||||||
__pycache__
|
__pycache__
|
||||||
agent-py-bot/scrape/raw/summary_log.txt
|
agent-py-bot/scrape/raw/summary_log.txt
|
||||||
agent-py-bot/scrape/raw/*
|
agent-py-bot/scrape/raw/*
|
||||||
|
.aider*
|
||||||
|
tts/*.m4a
|
||||||
|
2
doc/packages notes environments.md
Normal file
2
doc/packages notes environments.md
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
pip install autogenstudio
|
||||||
|
autogenstudio ui --8081
|
21
tts/openvoice/Dockerfile
Normal file
21
tts/openvoice/Dockerfile
Normal 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"]
|
1
tts/openvoice/OpenVoice
Submodule
1
tts/openvoice/OpenVoice
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit e99197fe5ed92167acb39fc50237791b088fe2f7
|
6
tts/openvoice/compose.yml
Normal file
6
tts/openvoice/compose.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
openvoice:
|
||||||
|
build: .
|
||||||
|
ports:
|
||||||
|
- "7860:7860"
|
29
tts/openvoice/install
Normal file
29
tts/openvoice/install
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# experimental
|
||||||
|
conda create -n openvoice python=3.9
|
||||||
|
conda activate openvoice
|
||||||
|
conda install pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 pytorch-cuda=11.7 -c pytorch -c nvidia
|
||||||
|
pip install -r requirements.txt
|
||||||
|
# git clone https://github.com/myshell-ai/OpenVoice.git
|
||||||
|
!git clone -b dev https://github.com/camenduru/OpenVoice
|
||||||
|
%cd /content/OpenVoice
|
||||||
|
|
||||||
|
!apt -y install -qq aria2
|
||||||
|
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/camenduru/OpenVoice/resolve/main/checkpoints_1226.zip -d /content -o checkpoints_1226.zip
|
||||||
|
!unzip /content/checkpoints_1226.zip
|
||||||
|
|
||||||
|
!pip install -q gradio==3.50.2 langid faster-whisper whisper-timestamped unidecode eng-to-ipa pypinyin cn2an
|
||||||
|
|
||||||
|
!python openvoice_app.py --share
|
||||||
|
|
||||||
|
# colab:
|
||||||
|
%cd /content
|
||||||
|
!git clone -b dev https://github.com/camenduru/OpenVoice
|
||||||
|
%cd /content/OpenVoice
|
||||||
|
|
||||||
|
!apt -y install -qq aria2
|
||||||
|
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/camenduru/OpenVoice/resolve/main/checkpoints_1226.zip -d /content -o checkpoints_1226.zip
|
||||||
|
!unzip /content/checkpoints_1226.zip
|
||||||
|
|
||||||
|
!pip install -q gradio==3.50.2 langid faster-whisper whisper-timestamped unidecode eng-to-ipa pypinyin cn2an
|
||||||
|
|
||||||
|
!python openvoice_app.py --share
|
Loading…
x
Reference in New Issue
Block a user