Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
WJ-Lai opened this issue Apr 23, 2023 · 0 comments

Comments

@WJ-Lai
Copy link

WJ-Lai commented Apr 23, 2023


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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant