NumPy 提供了 fftfreq ,可以指定取樣資料的尺寸與取樣率的倒數,計算出取樣頻率: freq = np.fft.fftfreq(samples.size, d = 1 / sample_rate).
確定! 回上一頁