librosa 音频特征提取的现成文档

Feature

librosa v: 0.7.2
__all__ = ['spectral_centroid',
           'spectral_bandwidth',
           'spectral_contrast',
           'spectral_rolloff',
           'spectral_flatness',
           'poly_features',
           'rms',
           'zero_crossing_rate',
           'chroma_stft',
           'chroma_cqt',
           'chroma_cens',
           'melspectrogram',
           'mfcc',
           'tonnetz']

def  spectral_centroid(y=None,  sr=22050,  S=None,  n_fft=2048,  hop_length=512,  freq=None,  win_length=None,  window='hann',  center=True,  pad_mode='reflect'):

def  spectral_bandwidth(y=None,  sr=22050,  S=None,  n_fft=2048,  hop_length=512,  win_length=None,  window='hann',  center=True,  pad_mode='reflect',  freq=None,  centroid=None,  norm=True,  p=2):

def  spectral_contrast(y=None,  sr=22050,  S=None,  n_fft=2048,  hop_length=512,  win_length=None,  window='hann',  center=True,  pad_mode='reflect',  freq=None,  fmin=200.0,  n_bands=6,  quantile=0.02,  linear=False):

def  spectral_rolloff(y=None,  sr=22050,  S=None,  n_fft=2048,  hop_length=512,  win_length=None,  window='hann',  center=True,  pad_mode='reflect',  freq=None,  roll_percent=0.85):

def  spectral_flatness(y=None,  S=None,  n_fft=2048,  hop_length=512,  win_length=None,  window='hann',  center=True,  pad_mode='reflect',  amin=1e-10,  power=2.0):

def  rms(y=None,  S=None,  frame_length=2048,  hop_length=512,  center=True,  pad_mode='reflect'):

def  poly_features(y=None,  sr=22050,  S=None,  n_fft=2048,  hop_length=512,  win_length=None,  window='hann',  center=True,  pad_mode='reflect',  order=1,  freq=None):

def  zero_crossing_rate(y,  frame_length=2048,  hop_length=512,  center=True,  **kwargs):

def  chroma_stft(y=None,  sr=22050,  S=None,  norm=np.inf,  n_fft=2048,  hop_length=512,  win_length=None,  window='hann',  center=True,  pad_mode='reflect',  tuning=None,  n_chroma=12,  **kwargs):

def  chroma_cqt(y=None,  sr=22050,  C=None,  hop_length=512,  fmin=None,  norm=np.inf,  threshold=0.0,  tuning=None,  n_chroma=12,  n_octaves=7,  window=None,  bins_per_octave=None,  cqt_mode='full'):

def  chroma_cens(y=None,  sr=22050,  C=None,  hop_length=512,  fmin=None,  tuning=None,  n_chroma=12,  n_octaves=7,  bins_per_octave=None,  cqt_mode='full',  window=None,  norm=2,  win_len_smooth=41,  smoothing_window='hann'):

def  tonnetz(y=None,  sr=22050,  chroma=None):

def  mfcc(y=None,  sr=22050,  S=None,  n_mfcc=20,  dct_type=2,  norm='ortho',  lifter=0,  **kwargs):

def  melspectrogram(y=None,  sr=22050,  S=None,  n_fft=2048,  hop_length=512,  win_length=None,  window='hann',  center=True,  pad_mode='reflect',  power=2.0,  **kwargs):

其中窗口可以查看 scipy.signal.get_window

本作品采用《CC 协议》,转载必须注明作者和本文链接

不要试图用百米冲刺的方法完成马拉松比赛。

讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

请勿发布不友善或者负能量的内容。与人为善,比聪明更重要!