The chip has 48kB of Ram, and you're tying to load the file in one go - so it's unlikely to work very well :) the fact that it crashes is bad though and I'll try and look into that.
Honestly I think you're going to have trouble playing the audio back even if I do end up implementing a way to stream from files. I've been pretty clear about Espruino not being great for audio and I don't think it'll be very good at this until I implement a way to push the contents of an array out using irqs I'm afraid...
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
The chip has 48kB of Ram, and you're tying to load the file in one go - so it's unlikely to work very well :) the fact that it crashes is bad though and I'll try and look into that.
Honestly I think you're going to have trouble playing the audio back even if I do end up implementing a way to stream from files. I've been pretty clear about Espruino not being great for audio and I don't think it'll be very good at this until I implement a way to push the contents of an array out using irqs I'm afraid...