Spaces:
Sleeping
Sleeping
Upload infertest.py
Browse files114 unmodified lines11511611711811811912012112212312312412512634 unmodified lines161162163164164165166167114 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, sid=0, input_audio_path=input_audio_path, f0_up_key=voice_transform, # Assuming voice_transform corresponds to f0_up_key f0_file=None , f0_method="rmvpe", file_index="model.index", # Assuming file_index_path corresponds to file_index file_index=spk_id, # Assuming file_index_path corresponds to file_index index_rate=0.75, filter_radius=3, resample_sr=0,34 unmodified lines audio_opt = vc.pipeline( hubert_model, net_g, sid, 0, audio, input_audio_path, times,infertest.py+3-3