basic_audio_analysis
basic_audio_analysis copied to clipboard
Import Error when running Examples 12, 13
The error is:
ImportError: cannot import name 'normalize_features' from 'pyAudioAnalysis.audioTrainTest' (/usr/local/lib/python3.7/dist-packages/pyAudioAnalysis/audioTrainTest.py)
I got the same error and believe it's due to that the function 'normalize_features' has been removed from 'pyAudioAnalysis/audioSegmentation.py' (see https://github.com/tyiannak/pyAudioAnalysis/commit/23b821d8baed6cf17bcd3695f9507096218e84a6). I tried to replace the normalize_feature in Example 12 with some inspiration from the code that it was replaced with (in audioSegmentation.py, that is), but needed to realise it's beyond my competence.
i was facing the same issue so I install the pyAudioAnalysis==0.3.2. Now it seems to work fine. I guess the normalize_feature was still included in this version. Hats off to this wonder person for making this library! Helped me alot :) Cheers !