Spaces:
Sleeping
Sleeping
Upload infertest.py
Browse files119 unmodified lines12012112212312312412512624 unmodified lines151152153154155156157158159160161162119 unmodified lines f0_up_key=voice_transform, # Assuming voice_transform corresponds to f0_up_key f0_file=None , f0_method="rmvpe", file_index=None, # Assuming file_index_path corresponds to file_index file_index="model.index", # Assuming file_index_path corresponds to file_index index_rate=0.75, filter_radius=3, resample_sr=0,24 unmodified lines print(f"Converting...") audio, sr = librosa.load(input_audio_path, sr=16000, mono=True) print(f"found audio ") f0_up_key = int(f0_up_key) times = [0, 0, 0] if hubert_model == None: load_hubert() print("loaded hubert") if_f0 = 1 audio_opt = vc.pipeline( hubert_model,infertest.py+3-1