when using openMV DAC to play wav file, MemoryError exception is raised in chunk.py when readframes function in wave.py module is called.
I got the chunk.py and wave.py and test wav file from below article:
the tested wave file is near 9KB, 8-bit, 16KHZ.
f = wave.open(filename, ‘r’)
total_frames = f.getnframes()
framerate = f.getframerate()
for position in range(0, total_frames, framerate):
Is this MemoryError due to limited heap size? how to check how much heap available? the tested wav file is less than 9kB.
is there anyone succeed in play wav file with openMV?