CorentinJ / Real-Time-Voice-Cloning

Clone a voice in 5 seconds to generate arbitrary speech in real-time
Other
51.55k stars 8.64k forks source link

TypeError: load() takes 1 positional argument but 2 were given #1166

Open enlightenight opened 1 year ago

enlightenight commented 1 year ago

Hello,

I have done everything so far, but when I'm trying to load from the LibreSpeech samples, this is the error I get.

Arguments: datasets_root: datasets_root models_dir: saved_models cpu: False seed: None

Traceback (most recent call last): File "/Users/XYZ/Documents/real-time-voice-cloning/toolbox/init.py", line 76, in self.ui.browser_load_button.clicked.connect(lambda: self.load_from_browser()) File "/Users/XYZ/Documents/real-time-voice-cloning/toolbox/init.py", line 157, in load_from_browser wav = Synthesizer.load_preprocess_wav(fpath) File "/Users/XYZ/Documents/real-time-voice-cloning/synthesizer/inference.py", line 136, in load_preprocess_wav wav = librosa.load(str(fpath), hparams.sample_rate)[0] TypeError: load() takes 1 positional argument but 2 were given

What should I do?

yallavaibhav commented 1 year ago

I have the same issue

image

KhangTimm commented 1 year ago

I seemed to have this problem too and it had something to do with the updated version of the librosa package. Installing an older version of librosa solved my problem:

pip install librosa==0.9.2

SayedDubai commented 1 year ago

Solved my error by reinstalling librosa

umangkalavadiya commented 1 year ago

pip install librosa==0.9.2

solved my error using this.

DnRamirez commented 1 year ago

Solved error by doing this.

XRone99 commented 1 year ago

worked for me too

voilentKiller0 commented 1 year ago

solved my problem too

pranavtushar commented 1 year ago

Hey with the new update of librosa, you have to specify the argument name, it will work.

poojuaj commented 10 months ago

solved my issues too thank you

Thoufeeq2k commented 7 months ago

i cant solve this even after installing librosa 0.9.2, i downgraded to 0.8.0 too can anyone tell what version of python you were using pls