onProgress

The τ Recorder API


onProgress

The attribut onProgress is a stream on which FlutterSound will post the recorder progression. You may listen to this Stream to have feedback on the current recording.

Example:

        myRecorder.setSubscriptionDuration(Duration(milliseconds: 100));
        _recorderSubscription = myrecorder.onProgress.listen((e)
        {
                Duration maxDuration = e.duration;
                double decibels = e.decibels
                ...
        }
        Lorem ipsum ...

Tags: api recorder