tyiannak / pyAudioAnalysis

Python Audio Analysis Library: Feature Extraction, Classification, Segmentation and Applications
Apache License 2.0
5.83k stars 1.19k forks source link

Problem encountered when doing mid term feature extraction #324

Open lxrswdd opened 3 years ago

lxrswdd commented 3 years ago

I did a `directory_feature_extraction_no_avg' with mid_window =1.0 and mid_step = 1.0 on a wav file with length of 1s. However, I got a (2,136) result instead of (1,136) as i expected. This happens to a 2s wav file too as the (4,136) is extracted instead of (2,136)

tyiannak commented 3 years ago

directory_feature_extraction_no_avg is for directories. Also it does not extract long-term averages, so it extracts a matrix of mid-term features for all segments of all wav files in the folder.

You probably need mid_feature_extraction() instead