Hi @Gordon,
Yes recording in 8 bits is reasonable.
I would like to send the clip to the client. I have following questions based on the code:
var soundBuff; NRF.setServices({ 0xBCDE : { 0xABCD : { value : "N/A", readable : true, // optional, default is false writable : true, // optional, default is false notify : true, // optional, default is false onWrite : function(evt) { // optional var clipSeconds = evt.data[0]; var w = new Waveform(512*clipSeconds,{bits:8}); w.on("finish", function(buf) { soundBuff=buf; NRF.updateServices({ 0xBCDE : { 0xABCD : { value : buf, notify: true } } }); }); w.startInput(D2,512); } } } });
Thank you.
@user73560 started
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.
Hi @Gordon,
Yes recording in 8 bits is reasonable.
I would like to send the clip to the client. I have following questions based on the code:
Thank you.