node-waveform
Input: any format audio or video file
Output: any or all of these:
- transcoded audio file
- waveform.js-compatible JSON representation of the audio file
- PNG rendering of the waveform
This is a Node.js module that wraps the waveform command line interface. The C code is bundled from that repository, so if you want to file an issue with or fork the C code, go to the waveform repository.
Usage
At least one of the options transcode
, waveformjs
or png
is required as
output destination.
var waveform = ; ;
Installation
-
Install libgroove dev package. Only the main library is needed. Packages are available for common package managers.
-
Install libpng and zlib dev packages.
-
npm install waveform