tyiannak / pyAudioAnalysis

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

Fix for Issue 376 about read_audio_generic's signal shape #377

Closed FrancescoManfredi closed 11 months ago

FrancescoManfredi commented 2 years ago

This pull request fixes issue #376 . I know you should use read_audio_file and it will call read_audio_generic if needed and then flatten the signal, but one might end up using the generic function by discovering its existence from hints in an environment such as jupyter notebooks.
On the other hand this does not break the current behavior of the read_audio_file -> read_audio_generic option.