Spaces:
Running
Running
Update src/covergen.py
Browse files47 unmodified lines4849505152535455565758596047 unmodified linesuse_hybrid_methods.change(update_f0_method, inputs=use_hybrid_methods, outputs=f0_method)crepe_hop_length = gr.Slider(8, 512, value=128, step=8, label='๐๏ธ Crepe Hop Length')f0_method.change(show_hop_slider, inputs=f0_method, outputs=crepe_hop_length)converted_audio = gr.Audio(label='๐ถ Converted Voice')refresh_btn.click(update_models_list, None, outputs=rvc_model)generate_btn.click(song_cover_pipeline, inputs=[audio_input, rvc_model, pitch, f0_method, crepe_hop_length, output_format], outputs=[converted_audio])# Merge/Process Tabwith gr.Tab('๐ Merge/Process'):47 unmodified lines4849505152535455565758596061626364656647 unmodified linesuse_hybrid_methods.change(update_f0_method, inputs=use_hybrid_methods, outputs=f0_method)crepe_hop_length = gr.Slider(8, 512, value=128, step=8, label='๐๏ธ Crepe Hop Length')f0_method.change(show_hop_slider, inputs=f0_method, outputs=crepe_hop_length)with gr.Row():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.')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.')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.')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.')converted_audio = gr.Audio(label='๐ถ Converted Voice')refresh_btn.click(update_models_list, None, outputs=rvc_model)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])# Merge/Process Tabwith gr.Tab('๐ Merge/Process'):
src/covergen.py+7-1