wannesm / dtaidistance

Time series distances: Dynamic Time Warping (fast DTW implementation in C)
Other
1.08k stars 184 forks source link

I have two long audios, how do I find out the repetitions of them #196

Open zouhan6806504 opened 1 year ago

zouhan6806504 commented 1 year ago

I turn them into mfcc features ,shaped (128, 1172),

y, sr = librosa.load('E:/audio/113987.wav', sr=None)
S = librosa.feature.melspectrogram(y, sr=sr, n_mels=128)
log_S = librosa.amplitude_to_db(S)
mel_128=librosa.feature.mfcc(S=log_S, n_mfcc=128)

then I use local_concurrences(mel_128.T, mel_128_2.T) I got error info ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

I'm new to audio process. and there is no local_concurrences in dtw_ndim