'output' module in librosa is deprecated now

see https://stackoverflow.com/questions/63997969/attributeerror-module-librosa-has-no-attribute-output for detail.
'output' was supported in librosa version.0.6.x, but now in ver 0.8.x it is deprecated and unable to use.
This commit is contained in:
Rabbit314271 2021-12-10 20:00:44 +08:00 committed by GitHub
parent a9c3865181
commit 70b5382620
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -26,7 +26,8 @@ def read_wav(path, sr, duration=None, mono=True):
def save_wav(path, wav, sr):
librosa.output.write_wav(path=path, y=wav, sr=sr)
import soundfile as sf
sf.write(path, wav, sr)
pass