How to work with big WAV files in Python without getting memory error?

524 Views Asked by At

When working with Python's soundfile for reading and writing audio WAV files that are longer than 9 minutes (size > 500 MB) I am getting a memory error ("cannot allocate 1.1 GBi"). How can I work with such big files without splitting them into smaller files (e.g. in Audacity)? Why without splitting? to detect effects of my processing after long duration runs (e.g. after continuous processing of > 9 minutes), in which history is important.

In general, how do I extend Python runtime memory in order to allow working with big files, including loading them and writing them to the hard-drive?

See also: Unable to allocate array with shape and data type

0

There are 0 best solutions below