Skip to content

Commit 4362065

Browse files
authored
Update test_cli.yml
1 parent c0b1835 commit 4362065

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/test_cli.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,50 @@ jobs:
5151
run: |
5252
python3 -m rvc.infer.infer_cli rvc --input_path "audio/test.mp3" --rvc_model "Tsoi" --f0_method "rmvpe" --f0_min 1 --f0_max 1100 --hop_length 32 --rvc_pitch -6 --protect 0.5 --index_rate 0 --volume_envelope 1 --output_format "mp3"
5353
54+
rvc_batch_cli:
55+
runs-on: ubuntu-latest
56+
strategy:
57+
matrix:
58+
python-version: ['3.10', '3.11']
59+
60+
steps:
61+
- name: Checkout code
62+
uses: actions/checkout@v4
63+
64+
- name: Set up Python ${{ matrix.python-version }}
65+
uses: actions/setup-python@v5
66+
with:
67+
python-version: ${{ matrix.python-version }}
68+
69+
- name: Upgrade pip for Python <3.11
70+
if: ${{ matrix.python-version == '3.10' }}
71+
run: |
72+
python -m pip install --upgrade "pip<=24.0"
73+
74+
- name: Install ffmpeg
75+
run: |
76+
sudo apt-get update
77+
sudo apt-get install -y ffmpeg
78+
79+
- name: Install dependencies
80+
run: |
81+
pip install --no-cache-dir -r requirements.txt
82+
83+
- name: Install RVC models
84+
run: |
85+
python3 -m rvc.modules.model_manager "https://huggingface.co/Politrees/Victor_Tsoi/resolve/main/Victor_Tsoi.zip?download=true" "Tsoi"
86+
87+
- name: Set up test audio
88+
run: |
89+
mkdir -p audio
90+
wget https://huggingface.co/Politrees/audio_for_test/resolve/main/BritishEnglishUKTest5.mp3 -O audio/test1.mp3
91+
wget https://huggingface.co/Politrees/audio_for_test/resolve/main/BritishEnglishUKTest5.mp3 -O audio/test2.mp3
92+
wget https://huggingface.co/Politrees/audio_for_test/resolve/main/BritishEnglishUKTest5.mp3 -O audio/test3.mp3
93+
94+
- name: Run rvc script
95+
run: |
96+
python3 -m rvc.infer.infer_cli rvc-batch --input_path "./audio/" --rvc_model "Tsoi" --f0_method "rmvpe" --f0_min 1 --f0_max 1100 --hop_length 32 --rvc_pitch -6 --protect 0.5 --index_rate 0 --volume_envelope 1 --output_format "mp3"
97+
5498
tts_cli:
5599
runs-on: ubuntu-latest
56100
strategy:

0 commit comments

Comments
 (0)