Open Wintar opened 1 year ago
Getting the exact same error. Tried my best to work at fixing it, but got nowhere.
The following fixed the issue for me (I'm using librosa 0.10.2 and Python 3.10.12):
Inside the timestretch function definition, add "rate=" to the 2nd argument of time_stretch() as shown below:
left = librosa.effects.time_stretch(signal[0, :], rate=factor)
right = librosa.effects.time_stretch(signal[1, :], rate=factor)
This is in accordance with the usage of time_stretch() shown in librosa's documentation (https://librosa.org/doc/latest/generated/librosa.effects.time_stretch.html).
Running on Python 3.10.10 Here is the full error:
Here are the inputs that cause the error:
Changing the directory of the files also did not change the error.