RecordConfig class

Recoding 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})
const

Properties

autoGain bool
final
bitRate int
final
device InputDevice?
final
echoCancel bool
final
encoder AudioEncoder
final
hashCode int
The hash code for this object.
no setterinherited
noiseSuppress bool
final
numChannels int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampleRate int
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