noisereduce icon indicating copy to clipboard operation
noisereduce copied to clipboard

MemoryError Traceback (most recent call last)

Open hairullana opened this issue 2 years ago • 2 comments

MemoryError Traceback (most recent call last) MemoryError: Unable to allocate 85.3 GiB for an array with shape (190747, 60002) and data type float64

I try simple usage same like on README.md but I have that error My audio duration is just 4.3 second

Thank you image image

hairullana avatar Mar 08 '22 09:03 hairullana

I had a problem like this and solved it changing my audio to mono.

aud_seg = AudioSegment.from_wav(wav_filename)
aud_seg = aud_seg.set_channels(1)
aud_seg.export(wav_filename, format="wav")

danpad01 avatar May 12 '22 14:05 danpad01

We should probably raise a warning or an error somewhere when people are inputting data with too many channels, or where data is transposed.

timsainb avatar May 12 '22 14:05 timsainb