tyiannak / pyAudioAnalysis

Python Audio Analysis Library: Feature Extraction, Classification, Segmentation and Applications
Apache License 2.0
5.76k stars 1.18k forks source link

Matplotlib Error while trying silence removal #336

Closed BeardyMan37 closed 3 years ago

BeardyMan37 commented 3 years ago

Matplotlib error of ValueError: x and y must have same first dimension, but have shapes (122,) and (121,) occurs when trying out silence removal. I had to comment out line 788 of audioSegmentation.py to get the code working. After commenting it out, I got the code working, but I couldn't see the 'svm Probability' graph.

tyiannak commented 3 years ago

Can u share a sample audio file that reproduces the error? it seems to work with a couple of audio files I've tested.

BeardyMan37 commented 3 years ago

Issue resolved. I was passing different lengthened audio clips.