Hey Iver,
I’ve been using audiomentations for dynamic mixing in a DNN pipeline for speech enhancement and source separation, and I ran into some loading-related bottlenecks.
I made a few changes on my side that speed things up quite a bit by only loading the audio that's actually needed. The trade-off is that lru_cache doesn't really work with this approach anymore, since the access pattern becomes less predictable.
Would you be open to a PR or discussion around this?
Cheers
Hey Iver,
I’ve been using
audiomentationsfor dynamic mixing in a DNN pipeline for speech enhancement and source separation, and I ran into some loading-related bottlenecks.I made a few changes on my side that speed things up quite a bit by only loading the audio that's actually needed. The trade-off is that
lru_cachedoesn't really work with this approach anymore, since the access pattern becomes less predictable.Would you be open to a PR or discussion around this?
Cheers