Easy wrapper for audiowaveform
Output normalized waveform data (between 0 and 1). Designed to be run on ubuntu
- audiowaveform (installed in the npm preinstall script)
- ffprobe (ffmpeg)
npm install --save https://github.com/Guisch/simpleWaveformJs.git
var wf = require('simplewaveformjs');
wf.getWaveform('input.mp3', function(res) {
console.log(res);
});
[0.92,0.98,0.789,0.464,0.626,0.908,0.975,0.743,0.641,0.869,0.95,0.969,0.599,0.67,0.845,0.979,0.758,0.451,0.64,0.885,0.968,0.746,0.662,0.856,0.975,0.973,0.603,0.646,0.843,0.979,0.751,0.568,0.661,0.89,0.974,0.783,0.591,0.842,0.96,0.957,0.604,0.663,0.864,0.996,0.749,0.529,0.636,0.858,0.968,0.779,0.497,0.865,0.965,0.972,0.618,0.617,0.841,0.962,0.953,0.498,0.61,0.834,0.97,0.75,0.484,0.582,0.916,0.983,0.765,0.635,0.865,0.983,0.991,0.488,0.595,0.877,0.971,0.747,0.477,0.558,0.887,0.972,0.755,0.607,0.862,0.95,0.965,0.604,0.567,0.877,0.964,0.742,0.572,0.616,0.904,0.971,0.775,0.574,0.84,0.974,0.936,0.598,0.574,0.87,0.966,0.773,0.542,0.569,0.885,0.968,0.711,0.441,0.88,0.956,0.955,0.585,0.575,0.843,0.984,0.762,0.522,0.529,0.903,0.952,0.771,0.455,0.89,0.977,0.967,0.607,0.62,0.863,0.973,0.958,0.566,0.567,0.884,0.98,0.721,0.456,0.654,0.896,0.962,0.697,0.643,0.879,0.99,0.946,0.566,0.574,0.839,0.977,0.732,0.455,0.659,0.898,0.958,0.727,0.674,0.866,0.968,0.963,0.617,0.604,0.84,0.96,0.739,0.502,0.703,0.861,0.974,0.724,0.692,0.829,0.98,0.958,0.633,0.657,0.796,0.975,0.78,0.551,0.701,0.867,0.948,0.75,0.61,0.837,0.95,0.919,0.67,0.64,0.873,0.958,0.796,0.567,0.784,0.896,0.95,0.744,0.58,0.846,0.965,0.93,0.685,0.665,0.856,0.996,0.948,0.631,0.779,0.862,0.979,0.748,0.555,0.709,0.947,0.949,0.807,0.636,0.834,0.96,0.93,0.626,0.698,0.914,0.939,0.759,0.622,0.78,0.916,0.967,0.799,0.664,0.823,0.994,0.933,0.632,0.715,0.836,0.977,0.805,0.723,0.758,0.877,0.964,0.829,0.683,0.882,0.984,0.955,0.633,0.702,0.853,0.961,0.814,0.685,0.712,0.85,0.931,0.823,0.666,0.853,0.964,0.929,0.675,0.733,0.857,0.982,0.824,0.656,0.738,0.885,0.976,0.765,0.786,0.847,0.985,0.932,0.667,0.796,0.873,0.965,0.892,0.692,0.705,0.851,0.948,0.798,0.678,0.634,0.927,0.966,0.717,0.774,0.889,0.962,0.878,0.687,0.787,0.781,0.462,0.572,0.42,0.437,0.642,0.403,0.677,0.565,0.773,0.609,0.432,0.549,0.563,0.799,0.468,0.452,0.418,0.492,0.602,0.367,0.575,0.493,0.806,0.748,0.491,0.544,0.492,0.829,0.511,0.393,0.474,0.483,0.592,0.404,0.561,0.54,0.568,0.799,0.426,0.593,0.512,0.842,0.621,0.554,0.618,0.495,0.616,0.412,0.541,0.509,0.562,0.815,0.466,0.489,0.525,0.784,0.433,0.383,0.431,0.516,0.587,0.357,0.565,0.496,0.446,0.765,0.426,0.499,0.449,0.782,0.488,0.379,0.477,0.48,0.587,0.326,0.661,0.554,0.505,0.769,0.454,0.627,0.489,0.8,0.502,0.404,0.464,0.496,0.593,0.339,0.59,0.547,0.545,0.791,0.399,0.582,0.487,0.728,0.828,0.429,0.478,0.412,0.549,0.333,0.398,0.536,0.474,0.779,0.375,0.543,0.507,0.617,0.835,0.367,0.514,0.472,0.593,0.437,0.423,0.674,0.523,0.764,0.373,0.52,0.515,0.542,0.8,0.41,0.54,0.545,0.574,0.326,0.339,0.543,0.493,0.772,0.41,0.462,0.521,0.457,0.77,0.364,0.429,0.516,0.564,0.434,0.337,0.573,0.484,0.767,0.379,0.583,0.334,0.363,0.765,0.326,0.443,0.411,0.79,0.7,0.414,0.464,0.372,0.755,0.423,0.432,0.382,0.474,0.735,0.329,0.397,0.568,0.727,0.661,0.606,0.369,0.462,0.699,0.443,0.392,0.473,0.555,0.808,0.364,0.436,0.395,0.583,0.711,0.446,0.497,0.464,0.633,0.46,0.336,0.476,0.46,0.751,0.353,0.478,0.356,0.544,0.602,0.462,0.4,0.418,0.799,0.436,0.371,0.432,0.408,0.764,0.356,0.364,0.33,0.398,0.714,0.346,0.434,0.431,0.751,0.395,0.399,0.483,0.41,0.662,0.359,0.351,0.292,0.476,0.72,0.567,0.472,0.409,0.583,0.685,0.256,0.304,0.361,0.704,0.34,0.388,0.387,0.405,0.61,0.422,0.329,0.315,0.562,0.542,...]