yzhou359/MakeItTalk

codelab error in Step 3: Generate input data for inference based on uploaded audio

WJ-Lai opened this issue · 0 comments


TypeError Traceback (most recent call last)
in <cell line: 6>()
10 # au embedding
11 from thirdparty.resemblyer_util.speaker_emb import get_spk_emb
---> 12 me, ae = get_spk_emb('examples/{}'.format(ain))
13 au_emb.append(me.reshape(-1))
14

1 frames
/usr/local/lib/python3.9/dist-packages/resemblyzer/audio.py in preprocess_wav(fpath_or_wav, source_sr)
31 # Resample the wav
32 if source_sr is not None:
---> 33 wav = librosa.resample(wav, source_sr, sampling_rate)
34
35 # Apply the preprocessing: normalize volume and shorten long silences

TypeError: resample() takes 1 positional argument but 3 were given