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.
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.
94Compare - audioplayers
If your primary focus is playing audio rather than low-level recording and visualization.
87Compare
Works with
Packages commonly used together with flutter_recorder: ones it builds on, ones built on it, and its own family.
- webflutter_recorder depends on itLightweight bindings for browser APIs via JS interop
- hooksflutter_recorder depends on itDart API for the JSON-based protocol for package build and link hooks.
- code_assetsflutter_recorder depends on itProvides the hook protocol specification for bundling native code with Dart packages.
- ffiflutter_recorder depends on itUtilities for working with Foreign Function Interface (FFI) code in Dart.
- loggingflutter_recorder depends on itProvides configurable logging with levels and stream listeners for Dart apps.
- plugin_platform_interfaceflutter_recorder depends on itReusable base class for platform interfaces of Flutter federated plugins.
- native_toolchain_cflutter_recorder depends on itInvoke the native C compiler installed on the host machine.
- audio_fluxBuilt on flutter_recorderFlutter widget for real-time audio visualizations using custom painter or shaders.