How to plot MFCC in Python?

前端 未结 4 743
陌清茗
陌清茗 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:30

    from python_speech_features import mfcc
    import scipy.io.wavfile as wav
    import matplotlib.pyplot as plt
    
    (rate,sig) = wav.read("AudioFile.wav")
    mfcc_feat = mfcc(sig,rate)
    
    print(mfcc_feat)
    plt.plot(mfcc_feat)
    plt.show()
    

提交回复
热议问题