How to plot MFCC in Python?

前端 未结 4 744
陌清茗
陌清茗 2021-02-02 17:48

I\'m just a beginner here in signal processing. Here is my code so far on extracting MFCC feature from an audio file (.WAV):

from python_speech_features import m         


        
4条回答
  •  被撕碎了的回忆
    2021-02-02 18:37

    Initially I read the wav file using librosa and fed with inbuilt function

    import librosa
    audio_path='../.../../../combo.wav' #location
    (xf, sr) = librosa.load(audio_path)    
    mfccs = librosa.feature.mfcc(y=xf, sr=sr, n_mfcc=4)
    librosa.display.specshow(mfccs, x_axis='time')
    plt.colorbar()
    plt.tight_layout()
    plt.title('mfcc')
    plt.show
    

    I used librosa

提交回复
热议问题