sox-waveform
node module to stream an audio file's waveform
You will need to install sox before use.
If you want to use MP3 files, you will also need libsox-fmt-mp3
Usage
Out to the console:
var soxWaveform = ; soxWaveform // can pipe to waveform transforms, such as averaging ;
or, out to a file:
var fs = ;var writable = fs;// build option is to auto-start building, helpful when piping to node streamssoxWaveform ;
Streaming Note
In an effort to reduce GC events, SoxWaveformStreamer
does not inherit from stream
to avoid repeated serializing/deserializing wavePoint
s.