just_waveform 0.0.5 just_waveform: ^0.0.5 copied to clipboard
Extracts waveform data from an audio file suitable for visually rendering the waveform.
just_waveform #
This plugin extracts waveform data from an audio file that can be used to render waveform visualisations.
Usage #
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.
}
});