Ahh, ok - try changing bits:16 to bits:8 - because the code to play the wave file is expecting 8 bit audio. It should make everything run a bit better too, since you're shifting half the amount of data around :)
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.
Ahh, ok - try changing
bits:16
tobits:8
- because the code to play the wave file is expecting 8 bit audio. It should make everything run a bit better too, since you're shifting half the amount of data around :)