audio_processor.py bug
dojochu opened this issue · 1 comments
dojochu commented
In compute_melgram()
function, just need to make sure you provide integer values for the indices
Adapt Line 31:
src = src[(n_sample - n_sample_fit) / 2:(n_sample + n_sample_fit) / 2]
To:
src = src[int((n_sample - n_sample_fit) / 2):(int(n_sample + n_sample_fit) / 2)]
keunwoochoi commented
I think both n_sample
and n_sample_fit
are always integers.