Use RVC via console or python scripts
Project description
rvc-python
Using RVC via console or python scripts
Feel free to make PRs or use the code for your own needs
Changelog
You can keep track of all changes on the release page
Installation
Simple installation :
pip install rvc-python
This will install all the necessary dependencies, including a CPU support only version of PyTorch
I recommend that you install the GPU version to improve processing speed ( up to 3 times faster )
Windows
python -m venv venv
venv\Scripts\activate
pip install rvc-python
pip install torch==2.1.1+cu118 torchaudio==2.1.1+cu118 --index-url https://download.pytorch.org/whl/cu118
Linux
python -m venv venv
source venv\bin\activate
pip install rvc-python
pip install torch==2.1.1+cu118 torchaudio==2.1.1+cu118 --index-url https://download.pytorch.org/whl/cu118
Usage
python -m rvc_python [-h] [-pi PITCH] [-i INPUT] [-ip INDEX] [-me METHOD] [-v VERSION] [-o OUTPUT] [-mp MODEL] [-ir INDEX_RATE] [-d DEVICE] [-fr FILTER_RADIUS] [-rsr RESAMPLE_SR] [-rmr RMS_MIX_RATE][-pr PROTECT]
Process and convert voices using specified models and methods.
options: -h, --help show this help message and exit -pi PITCH, --pitch PITCH Transpose integer, number of semitones. Raise by an octave: +12, lower by an octave: -12. -i INPUT, --input INPUT Path to input file (mandatory). -ip INDEX, --index INDEX Path to index file (optional). -me METHOD, --method METHOD Pitch extraction algorithm choices: ['harvest', 'crepe', 'rmvpe', 'pm']. -v VERSION, --version VERSION Version of the software or model ('v1' or 'v2'). -o OUTPUT, --output OUTPUT Output path for results (default is "out.wav"). -mp MODEL, --model MODEL Path to model file (mandatory). -ir INDEX_RATE, --index_rate INDEX_RATE Search feature ratio. -d DEVICE, --device DEVICE Device to use for processing (e.g., 'cpu' or 'cuda:0'). -fr FILTER_RADIUS, --filter_radius FILTER_RADIUS Apply median filtering to pitch results. Represents filter radius. A larger value can reduce breathiness. -rsr RESAMPLE_SR ,--resample_sr RESAMPLE_SR Resample output audio in post-processing. Set to "0" for no resampling.
-rmr RMS_MIX_RATE ,--rms_mix_rate RMS_MIX_RATE
Mix rate between input volume envelope and output volume envelope. Closer to "1" uses more from output.
-pr PROTECT ,--protect PROTECT
Protects voiceless consonants and breath sounds from artifacts such as tearing in electronic music. Decrease value for increased protection but may affect indexing accuracy.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for rvc_python-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75aa5c64f78773c70344ad45967cb0923300b643c39afb8478dc3c2cf1c38354 |
|
MD5 | bc4b1fe398203b5914930bf5015c30f5 |
|
BLAKE2b-256 | 3afe491e12b50e49c7e79e1486b1a781010690649c10babc9cc131523ccaf0c0 |