Closed aishwaryajadhav closed 3 years ago
Hi there,
You are correct that these lines of code only work for single-channel audio, but that was intentional, as we want to get a single spectrogram from the waveform. So the code implicitly gets the first channel of the audio and abandons the other channels. I will add a comment on these codes.
Thanks for your suggestion.
-Yuan
When specifying mixup>0, the code tries to load 2 audio files and if they are not the same length tries to scale waveform2 to the same shape as waveform1. There is a minor bug in the code that does this:
In the above snippet, lines 4, 5, 9, don't work where the 1st dimension of the waveforms >1. Following minor tweaks should help: