Flutter sound recording plugin for real-time DSP, now supports android.

Usage

import 'package:permission_handler/permission_handler.dart';
import 'package:sound_recording/sound_recording.dart';

if (await Permission.microphone.request().isGranted) {
  SoundRecording.start(sampleRate: 8000, bufferSize: 1024);
}

SoundRecording.onData((data) {
  // do some DSP
});

// stop if unneeded
SoundRecording.stop();

Libraries

sound_recording