Spaces:
Sleeping
Sleeping
Upload infertest.py
Browse files114 unmodified lines11511611711811912012112212312412512634 unmodified lines161162163164165166167114 unmodified linesdef convert_voice(spk_id, input_audio_path, voice_transform):get_vc(spk_id,0.5)output_audio_path = vc_single(sid=spk_id,input_audio_path=input_audio_path,f0_up_key=voice_transform, # Assuming voice_transform corresponds to f0_up_keyf0_file=None ,f0_method="rmvpe",file_index="model.index", # Assuming file_index_path corresponds to file_indexindex_rate=0.75,filter_radius=3,resample_sr=0,34 unmodified linesaudio_opt = vc.pipeline(hubert_model,net_g,sid,audio,input_audio_path,times,114 unmodified lines11511611711811912012112212312412512634 unmodified lines161162163164165166167114 unmodified linesdef convert_voice(spk_id, input_audio_path, voice_transform):get_vc(spk_id,0.5)output_audio_path = vc_single(sid=0,input_audio_path=input_audio_path,f0_up_key=voice_transform, # Assuming voice_transform corresponds to f0_up_keyf0_file=None ,f0_method="rmvpe",file_index=spk_id, # Assuming file_index_path corresponds to file_indexindex_rate=0.75,filter_radius=3,resample_sr=0,34 unmodified linesaudio_opt = vc.pipeline(hubert_model,net_g,0,audio,input_audio_path,times,
infertest.py+3-3