我尝试了这段代码,并且已经获得了光谱
y, sr = librosa.load("Sample1.wav")
ar=np.abs(librosa.stft(y))
D = librosa.amplitude_to_db(ar, ref=np.max)
librosa.display.specshow(D[:,0:], y_axis='linear',x_axis='time')
plt.colorbar(format='%+2.0f dB')
plt.title('frequency power spectrogram')
我不知道如何操作D数组
我想将每个时间单元格放入数据框(具有索引作为频率),
但是我不知道如何找到每个D [:,n]的频率值。
以及如何计算每一行的时间,据我所知,这不是精确的时间。
我的问题是如何知道:
关于dB为何为负的一点解释