I'd like to load large file in pydub. When I load .flac(250MB)
pydub.AudioSegment.from_file('samle.flac')
I got this error.
ERROR: 137 Process finished with exit code 137 (interrupted by signal 9: SIGKILL)
It is memory error. So I changed my docker memory from 4GB to 6GB. I solved load last file problem. However if I want to load more large file. I will hit same error. How can I solve load large file error?
For example load file by streaming or chunk.
In my case, I used pydub for get audio duration, sampling rate, channels and sliced audio.