Skip to content

kavorite/chunkloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ffcf6ba · Jan 19, 2025

History

25 Commits
Jan 13, 2025
Jan 19, 2025
Jan 13, 2025
Jan 15, 2025
Jan 15, 2025
Jan 15, 2025
Jan 13, 2025

Repository files navigation

Allows privatization and task-parallelization of decoding audio files across multiple threads. Loads audio files into numpy arrays of a desired size while allowing free threading, then yields chunks back to the GIL via the iterator protocol.

Probably terrible for most purposes. Still, good for deep learning. Which is what I do. 👍

Once all the kinks have been worked out of free-threaded Python and it's been widely adopted and stabilized, I'll probably just use librosa, because FFmpeg is usually a little overkill. Libsndfile is not 'thread-safe,' but if you keep processing on each SNDFILE handle local to its own thread, you shouldn't need to deal with contention, similar to the way this module works.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages