我在 python 中运行以下代码来获取风的音频信号的频谱图:
import librosa
import numpy as np
# Load the audio as a waveform `y`
# Store the sampling rate as `sr`
file_path = "wind.wav"
y, sr = librosa.load(file_path, sr = None, mono=True, offset = 0.0, duration=None)
D = librosa.stft(y)
librosa.display.specshow(librosa.amplitude_to_db(D,ref=np.max),y_axis='log', x_axis='time')
plt.title('Power spectrogram')
plt.colorbar(format='%+2.0f dB')
plt.tight_layout()
我得到以下图像:
我的问题:我如何解释这张图片?我到底在看什么,这个音频文件中的频率是多少?
