Have you tried once you got the sample rate correct? To test I used Audacity to export a 5 minute long song to a 4kHz RAW file and it worked great, without any problems at all.
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.
I wouldn't give up just yet.
Have you tried once you got the sample rate correct? To test I used Audacity to export a 5 minute long song to a 4kHz RAW file and it worked great, without any problems at all.