flutter_sound_record
3.3.2, released 3 years ago by an unverified publisher
Record audio from the microphone to a file with configurable codec, bitrate and sample rate.
WASM-ready
What it does
Provides a simple API to start, pause, resume and stop audio recording on Android, iOS and Web. Supports multiple encoders including AAC, AMR and OPUS and returns the recorded file path.
AI-written summary of version 3.3.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to capture raw audio input in a Flutter app
- Cross‑platform recording (Android, iOS, Web) is required
- You want fine‑grained control over codec and bitrate
Skip it when
- You only need audio playback (use audioplayers or just_audio)
- Complex audio processing or streaming is required
Strengths
- Zero external native dependencies beyond platform SDKs
- Supports multiple codecs and bitrate settings
- Works on Android, iOS and Web out of the box
Weaknesses
- No built‑in audio visualization or amplitude analysis beyond getAmplitude()
- Limited to file‑based output, no streaming support
- Permission handling must be done manually
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
Add RECORD_AUDIO permission on Android and NSMicrophoneUsageDescription on iOS; no additional Gradle or Xcode changes required.
import 'package:record/record.dart';
Future<void> recordDemo() async {
final recorder = Record();
if (await recorder.hasPermission()) {
await recorder.start(path: 'myFile.m4a', encoder: AudioEncoder.AAC);
// ... wait or do other work ...
final path = await recorder.stop();
print('Recorded file: $path');
}
}Alternatives
Packages that do the same job and could replace flutter_sound_record.