flutter_sound icon indicating copy to clipboard operation
flutter_sound copied to clipboard

[HELP]: Why is `event.decibels` not providing a value?

Open LdzLq opened this issue 1 year ago • 1 comments

I need Help for :

  • Using the API:
  1. FlutterSoundRecorder().startRecorder()
  2. FlutterSoundRecorder().onProgress!.listen((e){})
  • Generate an Android App
  • not work code:
 _recorder.onProgress!.listen((e) {
        print('Current dB: ${e.decibels}');
        print('onProgress called'); 
        if (e.decibels != null) {
          _currentDb.value = e.decibels!;
          print('Current dB: ${e.decibels}');
        }

-additions I am certain that the recording permissions are not an issue, and when I save the audio recorded by startRecorder() to the local storage, it plays with sound using a media player.

LdzLq avatar Oct 16 '24 03:10 LdzLq