Open Airade opened 4 years ago
Please send the error as well.
ImportError: cannot import name 'audioBasicIO'
This is the error I got, nothing else.
Does import pyAudioAnalysis work?
When I clone it separately to other venv it starts to work.
I had a similar issue on my MacBook. After installing libmagic with brew install libmagic
it worked
I am also getting a similar type of error: ImportError Traceback (most recent call last)
Just make sure your files are installed properly. Your main.py file should be place alongside pyaudioanalysis folder which contains all the python modules - audioBasicIO or ShortTermFeatures, etc. Then you can successfully run - from pyAudioAnalysis import audioBasicIO from pyAudioAnalysis import ShortTermFeatures
Note -
info=ShortTermFeatures.feature_extraction()
and get ride of import audioFeatureExtraction
completely.
Trying to write down code as shown in wiki i got that error. How can I fix it? from pyAudioAnalysis import audioBasicIO from pyAudioAnalysis import ShortTermFeatures import matplotlib.pyplot as plt [Fs, x] = audioBasicIO.read_audio_file("sample.wav") F, f_names = ShortTermFeatures.feature_extraction(x, Fs, 0.050Fs, 0.025Fs) plt.subplot(2,1,1); plt.plot(F[0,:]); plt.xlabel('Frame no'); plt.ylabel(f_names[0]) plt.subplot(2,1,2); plt.plot(F[1,:]); plt.xlabel('Frame no'); plt.ylabel(f_names[1]); plt.show()