start abstract method

Future<void> start({
  1. String? path,
  2. AudioEncoder encoder = AudioEncoder.aacLc,
  3. int bitRate = 128000,
  4. int samplingRate = 44100,
  5. int numChannels = 2,
  6. InputDevice? device,
})

Starts new recording session.

path: The output path file. If not provided will use temp folder. Ignored on web platform, output path is retrieve on stop.

encoder: The audio encoder to be used for recording. Ignored on web platform.

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

samplingRate: The sampling rate for audio in samples per second. Ignored on web platform.

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

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

Implementation

Future<void> start({
  String? path,
  AudioEncoder encoder = AudioEncoder.aacLc,
  int bitRate = 128000,
  int samplingRate = 44100,
  int numChannels = 2,
  InputDevice? device,
});