Skip to content
pubscout

flutter_recorder

2.0.7, released 7 days ago by marcobavagnoli.com

Low-level cross-platform audio recorder plugin using miniaudio with real-time waveform, FFT and volume.

WASM-ready
$ flutter pub add flutter_recorder
Source repository

What it does

A low-level audio recording plugin built with miniaudio that supports recording to WAV and Ogg Opus formats. It offers real-time volume, audio wave, and FFT data extraction, silence detection, and native hardware presets across multiple platforms.

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

Use it when

  • You need low-level audio recording with cross-platform support including web WASM.
  • You require real-time audio visualization metrics like waveform and FFT data.
  • You need silence detection or specific hardware audio input presets.

Skip it when

  • You only need basic audio playback without recording functionality.
  • You want a high-level audio recording wrapper without handling low-level configuration.

Strengths

  • Cross-platform support including Linux, Windows, Android, MacOS, iOS, and Web (WASM).
  • Real-time audio visualization events (waveform and FFT).
  • Built-in silence detection and customizable thresholds.

Weaknesses

  • Requires manual permission handling for microphone access on mobile and desktop platforms.
  • Some advanced features like silence detection are restricted to specific PCM formats.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
8

Requires microphone permissions in AndroidManifest.xml and Info.plist, plus audio-input entitlements on macOS and optional GStreamer dependencies on Linux.

try {
    Recorder.instance.init();
    Recorder.instance.start();
    Recorder.instance.startRecording(completeFilePath: 'audioCompleteFilenameWithPath.wav');
} on Exception catch (e) {
    debugPrint('init() error: $e\n');
}

Alternatives

Packages that do the same job and could replace flutter_recorder.

  • record

    If you need a more straightforward, high-level audio recording solution without low-level miniaudio bindings.

  • audioplayers

    If your primary focus is playing audio rather than low-level recording and visualization.

Works with

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