I'm trying to export an audio file with pydub. I did it in a mp3
format, however it was really slow. Then I found out that using a wav
format can make the process faster, but the size of the output file will be bigger.
audio.export("C:/Users/me/audio.wav", format="wav")
I am using a 64 bit version of python, so pydub can export 1 hour long audio files. But I need to export 10 hours long audio file. Here it says "MemoryError".
How can i make pydub export a 10 hours long audio file? Or maybe there are some alternatives to pydub that will let you export a 10 hours long audio file?
Edit:
The problem isn't in export. The problem is in AudioSegment
. When I try to open a new large file (10 hours long audio), a 'MemoryError' appears.
audio = AudioSegment.from_wav('C:/Users/me/audio.wav')
How can I solve this problem?