RecordConfig class

Recording configuration

encoder: The audio encoder to be used for recording.

bitRate*: The audio encoding bit rate in bits per second.

sampleRate*: The sample rate for audio in samples per second.

numChannels: The numbers of channels for the recording. 1 = mono, 2 = stereo.

device: The device to be used for recording. If null, default device will be selected.

autoGain*: The recorder will try to auto adjust recording volume in a limited range.

echoCancel*: The recorder will try to reduce echo.

noiseSuppress*: The recorder will try to negates the input noise.

*: May not be considered on all platforms/formats.

Constructors

RecordConfig({AudioEncoder encoder = AudioEncoder.aacLc, int bitRate = 128000, int sampleRate = 44100, int numChannels = 2, InputDevice? device, bool autoGain = false, bool echoCancel = false, bool noiseSuppress = false, AndroidRecordConfig androidConfig = const AndroidRecordConfig(), IosRecordConfig iosConfig = const IosRecordConfig()})
const

Properties

androidConfig AndroidRecordConfig
Android specific configuration.
final
autoGain bool
The recorder will try to auto adjust recording volume in a limited range (if available on the device).
final
bitRate int
The audio encoding bit rate in bits per second if applicable.
final
device InputDevice?
The device to be used for recording. If null, default device will be selected.
final
echoCancel bool
The recorder will try to reduce echo (if available on the device).
final
encoder AudioEncoder
The requested output format through this given encoder.
final
hashCode int
The hash code for this object.
no setterinherited
iosConfig IosRecordConfig
iOS specific configuration.
final
noiseSuppress bool
The recorder will try to negates the input noise (if available on the device).
final
numChannels int
The numbers of channels for the recording. 1 = mono, 2 = stereo. Most platforms only accept 2 at most.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampleRate int
The sample rate for audio in samples per second if applicable.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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