daswer123 / rvc-python

Using RVC via console or python scripts
MIT License
82 stars 24 forks source link

Error: Unknown keyword "output" #6

Open lukaszliniewicz opened 8 months ago

lukaszliniewicz commented 8 months ago

It seems like infer.py expects "opt_path". Or it may be I got this wrong.

From infer.py:

def infer_file(
    input_path,
    model_path,
    index_path="",
    device="cpu:0",
    f0method="harvest",
    opt_path="out.wav",
    index_rate=0.5,
    filter_radius=3,
    resample_sr=0,
    rms_mix_rate=1,
    protect=0.33,
    f0up_key=0,
    version="v2"
):

This is the example in the readme:

# To process a single file:
result = infer_file(
    input_path="./path_to_file",
    model_path="./model/path_to_model.pth",
    index_path="",  # Optional: specify path to index file if available
    device="cuda:0", # Use cpu or cuda
    f0method="harvest",  # Choose between 'harvest', 'crepe', 'rmvpe', 'pm'
    pitch=0,  # Transpose setting
    output="out.wav",  # Output file path
    index_rate=0.5,
    filter_radius=3,
    resample_sr=0,  # Set to desired sample rate or 0 for no resampling.
    rms_mix_rate=0.25,
    protect=0.33,
    version="v2"
)
wisplite commented 7 months ago

Adding to this, pitch is also not an option, not sure why it's in the README.