pyAudioAnalysis icon indicating copy to clipboard operation
pyAudioAnalysis copied to clipboard

ValueError: The number of classes has to be greater than one; got 1 class

Open VSydorskyy opened this issue 5 years ago • 2 comments

I am receiving this Error in audioTrainTest.py . This is mainly occurs in audio with no silence (or very a little silence) Screenshot from 2019-11-04 11-54-13 Screenshot from 2019-11-04 11-54-39

VSydorskyy avatar Nov 04 '19 09:11 VSydorskyy

Same here when using silence_removal function. Any solution?

jofuelo avatar May 13 '20 14:05 jofuelo

Same here when using silence_removal function. Any solution?

Maybe it has something to do with the inputs you feed the function with. At first glance, I computed st_win = 5 and st_step = 5 (just to try), and I got the same error as yours. But then I replaced them by st_win = 0.05 and st_step = 0.025, and it worked.

HippolyteKarakostas avatar Jun 02 '21 07:06 HippolyteKarakostas