RecorderConfig constructor
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,
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);