pyAudioAnalysis
pyAudioAnalysis copied to clipboard
Speaker diarization ValueError
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.
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.