pyAudioAnalysis icon indicating copy to clipboard operation
pyAudioAnalysis copied to clipboard

Speaker diarization ValueError

Open YanaHontarenko opened this issue 4 years ago • 1 comments

I run simple test on small audio with 2 speakers.

from pyAudioAnalysis import audioSegmentation as AS AS.speaker_diarization(filename='data/test_2.wav', n_speakers=2, plot_res=True) It give me error ValueError: Found array with 0 feature(s) (shape=(40, 0)) while a minimum of 1 is required.

Can anyone help me with this? Also I don't know requirements to audio. Maybe problem is in this.

YanaHontarenko avatar May 20 '20 08:05 YanaHontarenko

I got a ValueError: n_components cannot be larger than min(n_features, n_classes - 1). I resolved it by adding lda_dim=0 to the speaker_diarization() call.

ryanfox avatar Nov 19 '20 05:11 ryanfox