A simple stream wrapper for arecord (Linux (including Raspbian)) and sox (Mac, Windows). Returns a Passthrough stream object so that stream control like pause(), resume(), pipe(), etc. are all available.
Using the fileType option to add { fileType: 'wav' } allowed me to output a wav file with the appropriate headers. Might possibly consider this as a default. Tested on OSX 10.11.5
Using the fileType option to add { fileType: 'wav' } allowed me to output a wav file with the appropriate headers. Might possibly consider this as a default. Tested on OSX 10.11.5