AudioRecorderAdapter class abstract

Pluggable backend for audio recording. Implement against your preferred recording package (record, flutter_sound, etc.) so media_pro itself stays free of recording-engine dependencies.

Constructors

AudioRecorderAdapter()

Properties

amplitudeStream → Stream<double>
Emits amplitude values normalised to 0.0–1.0. Adapter-determined emission rate (typically 10–20 Hz).
no setter
durationStream → Stream<Duration>
Emits the elapsed recording duration.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stateStream → Stream<RecorderState>
Emits state transitions.
no setter

Methods

cancel() → Future<void>
Cancel the active recording and discard the file.
dispose() → Future<void>
Release native resources.
hasPermission() → Future<bool>
Has the user already granted microphone permission?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestPermission() → Future<bool>
Request microphone permission. Returns true if granted.
start({String? path}) → Future<String>
Start recording. If path is null, the adapter generates a temp path and returns it. The returned path is where the final recording will be written.
stop() → Future<String?>
Stop recording and finalize the file. Returns the path on success, null if nothing was recorded.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited