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

How to deal with this bug? #1271

Open
Tang15948660043 opened this issue Nov 8, 2023 · 3 comments
Open

How to deal with this bug? #1271

Tang15948660043 opened this issue Nov 8, 2023 · 3 comments

Comments

@Tang15948660043
Copy link

TypeError: melspectrogram() takes 0 positional arguments but 2 positional arguments (and 2 keyword-only arguments) were given

@Tang15948660043
Copy link
Author

TypeError: melspectrogram() 采用 0 个位置参数,但给出了 2 个位置参数(和 2 个仅关键字参数)
Real-Time-Voice-Cloning-master\encoder\audio.py", line 58, in wav_to_mel_spectrogram
frames = librosa.feature.melspectrogram(

@xianxiayeshixia
Copy link

I encountered the same problem

@danc403
Copy link

danc403 commented Dec 31, 2023

I just started tinkering with this so I'm sure there will be more errors to find but it is a version problem I think.

In encoder/audio.py line 58
The line frames = librosa.feature.melspectrogram(wav, sampling_rate, ...) uses positional arguments...,
which is incompatible with the newer librosa version you're using.
Change wav and sampling_rate to: y=wav, and sr=sampling_rate

That got it to run for me.

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

3 participants