python-soundfile icon indicating copy to clipboard operation
python-soundfile copied to clipboard

Silent error when a file is larger than 6 hours

Open harryjulian opened this issue 11 months ago • 1 comments

I discovered that soundfile fails to load my 44.1Khz audio when it's duration exceeds around 6 hours (I had two files, one that was 8 hours and one that 9 and noticed they were being loaded as the same length).

Importantly, soundfile just returns the first 6 hours of audio and doesn't indicate there's been a failure to load the entire file -- I found this confusing and hard to diagnose.

It might make sense to make this a non-silent error if this is expected behaviour! :)

Soundfile 0.12.1, Python 3.10.15

harryjulian avatar Feb 10 '25 14:02 harryjulian