A set of nodes for recording and streaming audio from an usb microphone connected to a Raspberry Pi in Node-Red.
To record send boolean true as msg.payload, to stop send false.
Streams Audio as raw L16 from the microphone. To record send boolean true as msg.payload, to stop send false.
Pipes the audio stream into a wav file on the sdcard
MicroPi Requires to have NodeJS version > 6.5.x and Node-Red version > 0.14.x installed, note that those available via apt-get WILL NOT WORK.
For information on how to get the newest versions the easiest way just check http://thisdavej.com/beginners-guide-to-installing-node-js
Tested and working on: npm 3.10.3, node v6.5.0, node-red v0.14.6