Files
storyteller-ml/voice_conversion/rvc-v2-justin
2023-06-19 21:57:17 -07:00
..
2023-06-19 19:50:40 -07:00
2023-06-19 19:50:40 -07:00
2023-06-19 19:50:40 -07:00
2023-06-19 19:50:40 -07:00
2023-06-19 19:50:40 -07:00
2023-06-19 19:50:40 -07:00
2023-06-19 19:53:06 -07:00
2023-06-19 19:53:06 -07:00
2023-06-19 19:51:45 -07:00
2023-06-19 19:51:45 -07:00
2023-06-19 19:51:45 -07:00
2023-06-19 19:51:45 -07:00
2023-06-19 19:51:45 -07:00
2023-06-19 19:51:45 -07:00
2023-06-19 19:51:45 -07:00
2023-06-19 19:51:45 -07:00
2023-06-19 19:51:45 -07:00
2023-06-19 19:51:45 -07:00
2023-06-19 19:51:45 -07:00
2023-06-19 21:57:17 -07:00
2023-06-19 19:51:45 -07:00
2023-06-19 19:51:45 -07:00
2023-06-19 19:51:45 -07:00
2023-06-19 19:51:45 -07:00
2023-06-19 19:51:45 -07:00
2023-06-19 19:51:45 -07:00
2023-06-19 19:51:45 -07:00
2023-06-19 19:51:45 -07:00
2023-06-19 19:51:45 -07:00
2023-06-19 19:51:45 -07:00
2023-06-19 19:51:45 -07:00
2023-06-19 19:51:45 -07:00
2023-06-19 19:51:45 -07:00
2023-06-19 20:43:40 -07:00
2023-06-19 19:51:45 -07:00
2023-06-19 19:51:45 -07:00
2023-06-19 19:51:45 -07:00

virtualenv env
source env/bin/activate
pip install -r requirements.txt

python3 fakeyou_infer-v2.py 0 "Path/to/the/input/audio file/Chug_Jug.wav" "Path/to/the/index file/added_IVF2933_Flat_nprobe_10.index" harvest "Path/to/the/output audio file/test_v2.wav" "Path/to/the/trained model/biggie-smalls.pth" 0.66 cuda:0 True 3 0 1 0.33

Example:

python3 fakeyou_infer-v2.py 0 "E:\codes\py39\RVC-beta\todo-songs\1111.wav" "E:\codes\py39\test-20230416b\logs\mi-test-v2\aadded_IVF677_Flat_nprobe_1_v2.index" harvest "test_v2.wav" "E:\codes\py39\test-20230416b\weights\mi-test-v2.pth" 0.66 cuda:0 True 3 0 1 0.33



Each argument passed to the script is used as follows:

f0up_key: The f0 key for the input audio file.

input_path: Path to the input audio file.

index_path: Path to the index file.

f0method: F0 estimation method to be used ('harvest' or 'pm').

opt_path: Path to the output audio file.

model_path: Path to the trained model.

index_rate: The rate for the index. (Search feature ratio)

device: The computation device to be used ('cuda:0' for GPU or 'cpu' for CPU).

is_half: Boolean value indicating whether to use half precision. Use 'True' for half-precision and 'False' for full-precision.

filter_radius: The radius of the filter. (If >=3: apply median filtering to the harvested pitch results. The value represents the filter radius and can reduce breathiness.)

resample_sr: The sample rate for resampling. (Resample the output audio in post-processing to the final sample rate. Set to 0 for no resampling)

rms_mix_rate: The RMS mix rate. (Use the volume envelope of the input to replace or mix with the volume envelope of the output. The closer the ratio is to 1, the more the output envelope is used)

protect: The protect value. (Protect voiceless consonants and breath sounds to prevent artifacts such as tearing in electronic music. Set to 0.5 to disable. Decrease the value to increase protection, but it may reduce indexing accuracy:)

See fakeyou_infer-v2.py for more info