Skip to content
pubscout

just_waveform

0.0.7, released 2 years ago by ryanheise.com

Extracts waveform data from audio files for visual rendering.

$ flutter pub add just_waveform
Source repository

What it does

Extracts waveform data from an audio file and provides it through a progress stream suitable for visually rendering waveform visualisations. It supports extracting multiple files simultaneously and running on Android, iOS, and macOS.

AI-written summary of version 0.0.7, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to visually render audio waveforms in your Flutter application.
  • You want to process audio file data into a custom .wave format for visualization.

Skip it when

  • You only need to play or record audio without extracting visual waveform data.

Strengths

  • Supports extracting multiple files simultaneously.
  • Provides a progress stream during extraction.
  • Cross-platform support for Android, iOS, and macOS.

Weaknesses

  • Limited platform support strictly to Android, iOS, and macOS.
  • Minimal documentation provided outside of basic usage.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
2

Requires setting min Flutter version to 3.27.0 or higher.

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.
  }
});

Alternatives

Packages that do the same job and could replace just_waveform.

Works with

Packages commonly used together with just_waveform: ones it builds on, ones built on it, and its own family.