每次文件很大(电影的长度)时,我都会遇到内存错误。有什么方法可以处理大文件音频片段吗?
sound = AudioSegment.from_mp3("vanilla_sky.mp3")
File "D:\Python27\lib\site-packages\pydub\audio_segment.py", line 423, in from_mp3 return cls.from_file(file, 'mp3') File "D:\Python27\lib\site-packages\pydub\audio_segment.py", line 412, in from_file obj = cls._from_safe_wav(output) File "D:\Python27\lib\site-packages\pydub\audio_segment.py", line 445, in _from_safe_wav return cls(data=file) File "D:\Python27\lib\site-packages\pydub\audio_segment.py", line 130, in __init__ data = data if isinstance(data, basestring) else data.read() MemoryError