resemble-ai / Resemblyzer

A python package to analyze and compare voices with deep learning
Apache License 2.0
2.79k stars 429 forks source link

Change some positional librosa args to keyword args #71

Closed mstopa closed 2 years ago

mstopa commented 2 years ago

Master's librosa requirement is >=0.6.1, so librosa==0.9.1 can be installed by pip dependency resolver if other apps are using it.

Librosa 0.9.1 issues a warning:

  warnings.warn(                                                                                                                                                                                      
[...]/site-packages/resemblyzer/audio.py:47: FutureWarning: Pass y=[ 1.4419351e-06 -5.9973927e-06  3.1637977e-05], sr=16000 as keyword args. From version 0.10 passing these as positional arguments will result in an error                                                            
  frames = librosa.feature.melspectrogram( 

Keyword args should be also used in librosa.resample