Skip to content

Reworked f0 predictors - torchfcpe is used for FCPE, torchcrepe is us… #725

Reworked f0 predictors - torchfcpe is used for FCPE, torchcrepe is us…

Reworked f0 predictors - torchfcpe is used for FCPE, torchcrepe is us… #725

Workflow file for this run

name: CLI Scripts Test
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
rvc_cli:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip for Python <3.11
if: ${{ matrix.python-version == '3.10' }}
run: |
python -m pip install --upgrade "pip<=24.0"
- name: Install ffmpeg
run: |
sudo apt-get update
sudo apt-get install -y ffmpeg
- name: Install dependencies
run: |
pip install --no-cache-dir uv
uv pip install --no-cache-dir -r requirements.txt -q --system
- name: Install RVC models
run: |
python3 -m rvc.modules.model_manager "https://huggingface.co/Politrees/Victor_Tsoi/resolve/main/Victor_Tsoi.zip?download=true" "Tsoi"
- name: Set up test audio
run: |
mkdir -p audio
wget https://huggingface.co/Politrees/audio_for_test/resolve/main/BritishEnglishUKTest5.mp3 -O audio/test.mp3
- name: Run rvc script
run: |
python3 -m rvc.infer.infer_cli rvc --input_path "audio/test.mp3" --rvc_model "Tsoi" --f0_method "fcpe" --f0_min 1 --f0_max 1100 --hop_length 32 --rvc_pitch -6 --protect 0.5 --index_rate 0 --volume_envelope 1 --output_format "mp3"
tts_cli:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip for Python <3.11
if: ${{ matrix.python-version == '3.10' }}
run: |
python -m pip install --upgrade "pip<=24.0"
- name: Install ffmpeg
run: |
sudo apt-get update
sudo apt-get install -y ffmpeg
- name: Install dependencies
run: |
pip install --no-cache-dir uv
uv pip install --no-cache-dir -r requirements.txt -q --system
- name: Install RVC models
run: |
python3 -m rvc.modules.model_manager "https://huggingface.co/Politrees/Victor_Tsoi/resolve/main/Victor_Tsoi.zip?download=true" "Tsoi"
- name: Run tts script
run: |
python3 -m rvc.infer.infer_cli tts --tts_voice "en-US-GuyNeural" --tts_text "e" --tts_rate 0 --tts_volume 0 --tts_pitch 0 --rvc_model "Tsoi" --f0_method "fcpe" --f0_min 1 --f0_max 1100 --hop_length 32 --rvc_pitch -6 --protect 0.5 --index_rate 0 --volume_envelope 1 --output_format "mp3"