Random audio selection and padding as required
Currently we always take the beginning of the audio file up to `max_length`. This prevents us from making full use of the data (especially when dealing with lots of long audio files). This change selects random parts of the audio file rather than always cropping from the start. It also pads audio files shorter than `max_length`. Feel free to re-work this but you get the idea.
Loading
Please register or sign in to comment