File "D:\clone\ml\vits\diff-svc\network\hubert\hubert_model.py", line 240, in get_units wav16 = librosa.resample(wav, sr, 16000) TypeError: resample() takes 1 positional argument but 3 were given
call to resample should be wav16 = librosa.resample(wav, orig_sr=sr, target_sr=16000) in newer version of librosa
also whats weird is that, multiple call to librosa.resample have key specifiy and others do not
like the call in vec_model.py line 28 and nvSTFT.py line 41
audio = librosa.resample(audio, orig_sr=sampling_rate, target_sr=16000)data = torch.from_numpy(librosa.core.resample(data.numpy(), orig_sr=sampling_rate, target_sr=target_sr))
File "D:\clone\ml\vits\diff-svc\network\hubert\hubert_model.py", line 240, in get_units
wav16 = librosa.resample(wav, sr, 16000)
TypeError: resample() takes 1 positional argument but 3 were given
call to resample should be
wav16 = librosa.resample(wav, orig_sr=sr, target_sr=16000)
in newer version of librosaalso whats weird is that, multiple call to librosa.resample have key specifiy and others do not like the call in
vec_model.py
line 28 andnvSTFT.py
line 41audio = librosa.resample(audio, orig_sr=sampling_rate, target_sr=16000)
data = torch.from_numpy(librosa.core.resample(data.numpy(), orig_sr=sampling_rate, target_sr=target_sr))