mrobo_5ht2a t1_ir1b24s wrote on October 4, 2022 at 4:43 PM Reply to [D] How to efficiently sample audio clips from a large audio file for classifying the large audio file? by time_waster103 You could store the audio clips as a Numpy memory map, and sample from it. This way, you will be able to sample clips without loading everything into memory. One library you can use is mmap-ninja. Disclaimer: I'm the author of mmap-ninja. Permalink 6
mrobo_5ht2a t1_ir1b24s wrote
Reply to [D] How to efficiently sample audio clips from a large audio file for classifying the large audio file? by time_waster103
You could store the audio clips as a Numpy memory map, and sample from it. This way, you will be able to sample clips without loading everything into memory. One library you can use is mmap-ninja.
Disclaimer: I'm the author of mmap-ninja.