This plugin extracts waveform data from an audio file that can be used to render waveform visualisations.
final progressStream = JustWaveform.extract(
audioInFile: '/path/to/audio.mp3',
waveOutFile: '/path/to/waveform.wave',
zoom: const WaveformZoom.pixelsPerSecond(100),
);
progressStream.listen((waveformProgress) {
print('Progress: %${(100 * waveformProgress.progress).toInt()}');
if (waveformProgress.waveform != null) {
// Use the waveform.
}
});