waveform-node 0.3.1
Install from the command line:
Learn more about npm packages
$ npm install @sipgate/waveform-node@0.3.1
Install via package.json:
"@sipgate/waveform-node": "0.3.1"
About this version
You need to have ffmpeg installed, and add the path to environment variable.
var waveform = require('waveform-node');
var options = {};
waveform.getWaveForm( __dirname + './mpthreetest.mp3', options, function(error, peaks){
if(error){
return;
}
// Get peaks
console.log(peaks);
});
Type: Integer
Default: undefined
Samples per second. This parameter is conflict with numOfSample, if this attribute was set, the numOfSample will be ignored.
Type: Integer
Default: 2000
Number of data point for return value, sampling across entire waveform
Type: Enum
Default: Stack
Choose type of return value
- Stack will be series of peak by picking highest absolute value in given window(sampling rate)
- Line will be series of value by the sampling rate
Type: String
Default: ffmpeg
Location of the 'ffmpeg' binary. Check out the 'ffmpeg-static' package for static binaries.
Details
- waveform-node
- sipgate
- over 2 years ago
- 2 dependencies
Assets
- waveform-node-0.3.1-npm.tgz
Download activity
- Total downloads 524
- Last 30 days 4
- Last week 2
- Today 0