flutter_audio_capture
1.1.12, released 11 months ago by an unverified publisher
Capture raw audio stream buffer through microphone for iOS, Android, and Linux.
What it does
Allows developers to capture the raw audio buffer stream directly from the device's microphone. Provides callbacks to handle the captured stream as Float64List data along with sample rate and buffer size controls.
AI-written summary of version 1.1.12, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need raw audio buffer streams from the microphone for processing, visualization, or analysis.
- You are targeting iOS, Android, or Linux.
Skip it when
- You simply want to record and save audio files to disk without processing raw buffers.
- You only need high-level media playback.
Strengths
- Supports customizable sample rate and buffer sizes.
- Cross-platform support for iOS, Android, and Linux.
Weaknesses
- Requires manual platform-specific permission configuration for microphone usage.
- Limited to Float64List audio buffer format currently.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Requires adding RECORD_AUDIO permission in AndroidManifest.xml and NSMicrophoneUsageDescription in Info.plist for iOS. On Linux, ensure pulseaudio is installed.
FlutterAudioCapture plugin = new FlutterAudioCapture();
void listener(dynamic obj) {
var buffer = Float64List.fromList(obj.cast<double>());
print(buffer);
}
void onError(Object e) {
print(e);
}
await plugin.start(listener, onError, sampleRate: 16000, bufferSize: 3000);Alternatives
Packages that do the same job and could replace flutter_audio_capture.