nevreal commited on
Commit
18f29ed
Β·
verified Β·
1 Parent(s): d105998

Update src/covergen.py

Browse files
Files changed (1) hide show
  1. src/covergen.py +7 -1
src/covergen.py CHANGED
@@ -48,13 +48,19 @@ with gr.Blocks(title="🎀 RVC Inference", css="footer{display:none !important}"
48
  use_hybrid_methods.change(update_f0_method, inputs=use_hybrid_methods, outputs=f0_method)
49
  crepe_hop_length = gr.Slider(8, 512, value=128, step=8, label='πŸŽ›οΈ Crepe Hop Length')
50
  f0_method.change(show_hop_slider, inputs=f0_method, outputs=crepe_hop_length)
 
 
 
 
 
 
51
 
52
  converted_audio = gr.Audio(label='🎢 Converted Voice')
53
 
54
 
55
 
56
  refresh_btn.click(update_models_list, None, outputs=rvc_model)
57
- generate_btn.click(song_cover_pipeline, inputs=[audio_input, rvc_model, pitch, f0_method, crepe_hop_length, output_format], outputs=[converted_audio])
58
 
59
  # Merge/Process Tab
60
  with gr.Tab('πŸ”„ Merge/Process'):
 
48
  use_hybrid_methods.change(update_f0_method, inputs=use_hybrid_methods, outputs=f0_method)
49
  crepe_hop_length = gr.Slider(8, 512, value=128, step=8, label='πŸŽ›οΈ Crepe Hop Length')
50
  f0_method.change(show_hop_slider, inputs=f0_method, outputs=crepe_hop_length)
51
+ with gr.Row():
52
+ index_rate = gr.Slider(0, 1, value=0, label=' πŸ”§ Index Rate', info='Controls the extent to which the index file influences the analysis results. A higher value increases the influence of the index file, but may amplify breathing artifacts in the audio. Choosing a lower value may help reduce artifacts.')
53
+ filter_radius = gr.Slider(0, 7, value=3, step=1, label='πŸ“‘ Filter Radius', info='Manages the radius of filtering the pitch analysis results. If the filtering value is three or higher, median filtering is applied to reduce breathing noise in the audio recording.')
54
+ rms_mix_rate = gr.Slider(0, 1, value=0.25, step=0.01, label='〽️ RMS Mix Rate', info='Controls the extent to which the output signal is mixed with its envelope. A value close to 1 increases the use of the envelope of the output signal, which may improve sound quality.')
55
+ protect = gr.Slider(0, 0.5, value=0.33, step=0.01, label='β›” Consonant Protection', info='Controls the extent to which individual consonants and breathing sounds are protected from electroacoustic breaks and other artifacts. A maximum value of 0.5 provides the most protection, but may increase the indexing effect, which may negatively impact sound quality. Reducing the value may decrease the extent of protection, but reduce the indexing effect.')
56
+
57
 
58
  converted_audio = gr.Audio(label='🎢 Converted Voice')
59
 
60
 
61
 
62
  refresh_btn.click(update_models_list, None, outputs=rvc_model)
63
+ generate_btn.click(song_cover_pipeline, inputs=[audio_input, rvc_model, pitch, f0_method, crepe_hop_length, index_rate, filter_radius, rms_mix_rate, protect, output_format], outputs=[converted_audio])
64
 
65
  # Merge/Process Tab
66
  with gr.Tab('πŸ”„ Merge/Process'):