Hi there I have a folder saved as 'path' where 4 wav files are stored, So I am trying to plot in figure matrix of 4 rows and 3 columns for every wav files three corresponding plots as waveform, mfcc and spectrogram.
using the code below, somehow not able to set these i parameters plz guide.
path=glob.glob('E:/Python_On_All_Dataset/Four emotion_for plot/*.wav')
for i in range(0,13):
for p in path:
y, sr = librosa.load(p, sr=16000)
mfcc=librosa.feature.mfcc(y)
S = librosa.feature.melspectrogram(y, sr)
#fig, ax = plt.subplot()
librosa.display.waveplot(y, sr=sr)
#plt.show()
plt.subplot(12/3,12/4,i+1)
librosa.display.specshow(mfcc, x_axis="time",y_axis="mel")
#plt.show()
plt.subplot(12/3,12/4,i+2)
librosa.display.specshow(librosa.power_to_db(S))
#librosa.display.specshow((S))
plt.subplot(12/3,12/4,i+3)
plt. axis('off')