flutter_sound
flutter_sound copied to clipboard
[HELP]: Why is `event.decibels` not providing a value?
I need Help for :
- Using the API:
- FlutterSoundRecorder().startRecorder()
- 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.