basic_audio_analysis icon indicating copy to clipboard operation
basic_audio_analysis copied to clipboard

Import Error when running Examples 12, 13

Open PS-AI opened this issue 3 years ago • 2 comments

The error is:

ImportError: cannot import name 'normalize_features' from 'pyAudioAnalysis.audioTrainTest' (/usr/local/lib/python3.7/dist-packages/pyAudioAnalysis/audioTrainTest.py)

PS-AI avatar Dec 15 '21 06:12 PS-AI

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.

solitaIsabelleJo avatar May 05 '22 11:05 solitaIsabelleJo

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 !

quaviurrahman avatar Jun 30 '22 12:06 quaviurrahman