Skip to content

Faster loading of sounds #409

@JorisCos

Description

@JorisCos

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions