如何从命令行生成窄带光谱?

如何从命令行生成窄带光谱?

是否有 Linux 命令行工具可以使用 Hann 窗生成能量平均窄带光谱?我想从风力涡轮机的音频中获取频谱。规格说明如下:

The two one-minute measurements shall be divided into 12 ten-second periods, 
from which 12 energy averaged narrowband spectra using the Hanning window
are obtained.

The bandwidth of a critical band shall be determined by 

    critical bandwidth = 25+75(1+1,4[f_c/1000])^0,69

where f_c is the center frequency in HZ.

我认为这里的汉宁窗是指汉恩窗,如https://docs.scipy.org/doc/scipy-0.19.0/reference/ generated/scipy.signal.hanning.html。我发现有一个名为 spek 的工具,但当我尝试编译它时,它说

configure: error: Package requirements (libavcodec >= 53.25 libavformat >= 53.17 libavutil >= 51.17) were not met:

No package 'libavcodec' found
No package 'libavformat' found
No package 'libavutil' found

然后我尝试了

sudo apt install libavformat
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libavformat

相关内容