コマンドラインから狭帯域スペクトルを生成するには?

コマンドラインから狭帯域スペクトルを生成するには?

Hannウィンドウを使用してエネルギー平均狭帯域スペクトルを生成するためのLinuxコマンドラインツールはありますか?風力タービンのオーディオから周波数スペクトルを取得したいです。仕様は次のとおりです。

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.

ここで、Hanning ウィンドウは、次の Hann ウィンドウを意味するようです。https://docs.scipy.org/doc/scipy-0.19.0/reference/生成/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

ベストアンサー1

おすすめ記事