RecorderConfig class

Constructors

RecorderConfig({required String filePath, int sampleRate = 16000, RecorderChannel channel = RecorderChannel.mono, PcmBitRate pcmBitRate = PcmBitRate.pcm16Bit, Duration period = const Duration(milliseconds: 100), Duration? maxDuration = const Duration(hours: 5), int freeDisk = 100, InterruptedBehavior interruptedBehavior = InterruptedBehavior.pause})

Properties

channel RecorderChannel
The channel of the recording. The default value is RecorderChannel.mono.
final
filePath String
The path to save the audio.
final
freeDisk int
The minimum free disk space in MB. The default value is 100.
final
hashCode int
The hash code for this object.
no setterinherited
interruptedBehavior InterruptedBehavior
The behavior when the recording is interrupted. The default value is InterruptedBehavior.pause.
final
maxDuration Duration?
The maximum duration of the recording. The default value is 5 hours, if the value is null, the recording will not be limited.
final
pcmBitRate PcmBitRate
The bit rate of the recording. The default value is PcmBitRate.pcm16Bit.
final
period Duration
The period of the recorderInfoStream callback. The default value is 100 milliseconds.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampleRate int
The sample rate of the recording, in hertz. The default value is 16000.
final

Methods

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

Operators

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