RecorderConfig constructor

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

Implementation

RecorderConfig({
  required this.filePath,
  this.sampleRate = 16000,
  this.channel = RecorderChannel.mono,
  this.pcmBitRate = PcmBitRate.pcm16Bit,
  this.period = const Duration(milliseconds: 100),
  this.maxDuration = const Duration(hours: 5),
  this.freeDisk = 100,
  this.interruptedBehavior = InterruptedBehavior.pause
}): assert(period.inMilliseconds > 50);