1 min readAug 25, 2020
Thanks for your article. There is a logical bug in your code snippet. preprocess_wav function can alter the audio length by trimming the silences. So, the time splits you create after that can not be mapped back directly to the original audio file. You should either first split and then preprocess them, or keep the silence regions saved and then use them to map the splits correctly.