start method

Future<void> start({
  1. required void onChunk(
    1. Float32List chunk,
    2. bool isFinal
    ),
})

Implementation

Future<void> start({
  required void Function(Float32List chunk, bool isFinal) onChunk,
}) async {
  try {
    await stop();
    _isRecording = true;
    _startOfficialSherpa();
  } catch (e, stack) {
    print("AudioProcessor start error: $e\n$stack");
  }
}