Get a spectrum of frequencies from WAV/RIFF using linux command line

徘徊边缘 提交于 2019-12-05 15:50:41
mti2935

What you are looking for is called a Fourier Transform, or Fast Fourier Transform (FFT). The FFT is a mathematical algorithm that transforms time domain samples (i.e. the membrane positions, as you put it, at points in time), which are contained in a .wav file - into frequency components. If you Google FFT, you will find much more information, including source code that you can compile and reuse in Linux. See How do I plot the spectrum of a wav file using FFT? for a good start.

You can try the stat option in sox.

play track.wav stat -freq

How about

sox sound.wav -n stat -freq >& file.dat
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!