[GH-ISSUE #38] RVC API Problem with Gradio in F0 Curve File #30

Open
opened 2026-10-20 09:53:15 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @MohamedhediHamdi1 on GitHub (Jul 4, 2024).
Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion/issues/38

I am trying to access the RVC API method infer_convert using the Gradio client, but I am encountering issues with the F0 curve file. I have tried using None and empty string and other files, but it still does not work. Could you please provide an example or guidance on how to properly use the F0 curve file with this API?

Originally created by @MohamedhediHamdi1 on GitHub (Jul 4, 2024). Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion/issues/38 I am trying to access the RVC API method infer_convert using the Gradio client, but I am encountering issues with the F0 curve file. I have tried using None and empty string and other files, but it still does not work. Could you please provide an example or guidance on how to properly use the F0 curve file with this API?
Author
Owner

@MohamedhediHamdi1 commented on GitHub (Jul 4, 2024):

`from gradio_client import Client

client = Client("http://127.0.0.1:7865/")
result = client.predict(
0, # float (numeric value between 0 and 2333) in 'Select Speaker/Singer ID:' Slider component
"C:/Users/Administrator/Downloads/test/wav.wav", # str in 'Enter the path of the audio file to be processed (default is the correct format example):' Textbox component
5, # float in 'Transpose (integer, number of semitones, raise by an octave: 12, lower by an octave: -12):' Number component
None, # str (filepath on your computer (or URL) of file) in 'F0 curve file (optional). One pitch per line. Replaces the default F0 and pitch modulation:' File component
"rmvpe", # str in 'Select the pitch extraction algorithm ('pm': faster extraction but lower-quality speech; 'harvest': better bass but extremely slow; 'crepe': better quality but GPU intensive), 'rmvpe': best quality, and little GPU requirement' Radio component
"", # str in 'Path to the feature index file. Leave blank to use the selected result from the dropdown:' Textbox component
"logs/agadmator.index", # str (Option from: ['logs/agadmator.index']) in 'Auto-detect index path and select from the dropdown:' Dropdown component
0, # float (numeric value between 0 and 1) in 'Search feature ratio (controls accent strength, too high has artifacting):' Slider component
0, # float (numeric value between 0 and 7) in 'If >=3: apply median filtering to the harvested pitch results. The value represents the filter radius and can reduce breathiness.' Slider component
0, # float (numeric value between 0 and 48000) in 'Resample the output audio in post-processing to the final sample rate. Set to 0 for no resampling:' Slider component
0, # float (numeric value between 0 and 1) in 'Adjust the volume envelope scaling. Closer to 0, the more it mimicks the volume of the original vocals. Can help mask noise and make volume sound more natural when set relatively low. Closer to 1 will be more of a consistently loud volume:' Slider component
0, # float (numeric value between 0 and 0.5) in '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:' Slider component
api_name="/infer_convert"
)
print(result)`

<!-- gh-comment-id:2208399937 --> @MohamedhediHamdi1 commented on GitHub (Jul 4, 2024): `from gradio_client import Client client = Client("http://127.0.0.1:7865/") result = client.predict( 0, # float (numeric value between 0 and 2333) in 'Select Speaker/Singer ID:' Slider component "C:/Users/Administrator/Downloads/test/wav.wav", # str in 'Enter the path of the audio file to be processed (default is the correct format example):' Textbox component 5, # float in 'Transpose (integer, number of semitones, raise by an octave: 12, lower by an octave: -12):' Number component None, # str (filepath on your computer (or URL) of file) in 'F0 curve file (optional). One pitch per line. Replaces the default F0 and pitch modulation:' File component "rmvpe", # str in 'Select the pitch extraction algorithm ('pm': faster extraction but lower-quality speech; 'harvest': better bass but extremely slow; 'crepe': better quality but GPU intensive), 'rmvpe': best quality, and little GPU requirement' Radio component "", # str in 'Path to the feature index file. Leave blank to use the selected result from the dropdown:' Textbox component "logs/agadmator.index", # str (Option from: ['logs/agadmator.index']) in 'Auto-detect index path and select from the dropdown:' Dropdown component 0, # float (numeric value between 0 and 1) in 'Search feature ratio (controls accent strength, too high has artifacting):' Slider component 0, # float (numeric value between 0 and 7) in 'If >=3: apply median filtering to the harvested pitch results. The value represents the filter radius and can reduce breathiness.' Slider component 0, # float (numeric value between 0 and 48000) in 'Resample the output audio in post-processing to the final sample rate. Set to 0 for no resampling:' Slider component 0, # float (numeric value between 0 and 1) in 'Adjust the volume envelope scaling. Closer to 0, the more it mimicks the volume of the original vocals. Can help mask noise and make volume sound more natural when set relatively low. Closer to 1 will be more of a consistently loud volume:' Slider component 0, # float (numeric value between 0 and 0.5) in '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:' Slider component api_name="/infer_convert" ) print(result)`
Author
Owner

@KungFuFurniture commented on GitHub (Aug 28, 2024):

I am having the same issue. Any ideas would be welcomed... Please and Thank you.

<!-- gh-comment-id:2315635698 --> @KungFuFurniture commented on GitHub (Aug 28, 2024): I am having the same issue. Any ideas would be welcomed... Please and Thank you.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
RVC-Project/Retrieval-based-Voice-Conversion#30
No description provided.