Open giusarno opened 5 years ago
this does not seem directly related to the sample frequency but to the if statement in stChromaFeatures if nChroma.max()<nChroma.shape[0]:
I had the same problem. I stucked here...
I had the same issue. In my case, I was using silenceRemoval() from audioSegmentation.py.
I solved it by changing st_win and st_step (window size and step in seconds) from 0.020 to 0.040.
This is the line:
self.segments = aS.silenceRemoval(self.audio_x, self.Fs, 0.040, 0.040, weight=0.9, smoothWindow=0.9 , plot=False)
Hope this is useful.
Get an error for 8Khz Wav file when I run this simple example. Works for 16Khz recordings.
`from pyAudioAnalysis import audioBasicIO as aIO from pyAudioAnalysis import audioSegmentation as aS [Fs, x] = aIO.readAudioFile("recs/Wallet1.wav")
print (Fs)
print (x) segments = aS.silenceRemoval(x, Fs, 0.020, 0.020, smoothWindow = 0.6, weight = 0.3, plot = True)
segments = aS.silenceRemoval(x, Fs, 0.020, 0.020)
`
ValueError Traceback (most recent call last)