You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Sometimes long voice recordings get truncated to just 1–3 seconds.
This issue has occurred for many users. Interestingly, I have never been able to reproduce it myself, either on an emulator or on my Xiaomi phone.
Some of our users have reported this issue, particularly on Samsung with Android 16 phones.
Is the bad recording really 1-3 seconds, or the time of recording with silence (or noise)? Or sometimes, it is longer but still "truncated"?
Do you subcribe to state stream to know if the recording has been stopped or paused?
You left audioInterruption to .pause (the default). You can try with .none (recommended for diagnostic) or .pauseResume.
Is the app in background while recording? If so, the issue is irrelant here, this is not supported by this package directly.
The file seems playable, so for now I strongly assume that the recording is just paused and never resumed.
Either way, you should listen to onStateChanged() so your UI reflects the actual recorder state.
To keep the take going, you could set audioInterruption to .none and AndroidRecordConfig.muteAudio to true (to mute notifications and other system/app sounds).
We conducted various tests and realized that these issues were caused by the way we had implemented the audio functionality.
Sometimes, when the user moved the app to the background, the voice playback would stop.
Sometimes, the user would play an audio file while recording a voice message, which caused the recording to stop. However, because we hadn't implemented onStateChanged, we weren't aware that the recording had been paused.
In some cases, the user would start recording a new voice message while a previous one was still being uploaded. Once the previous upload was completed, we played a one-second notification sound to indicate that the upload was successful. This sound caused the current recording to pause, but we weren't aware of it.
Unfortunately, we didn't have sufficient knowledge of audioInterruption and how it works, which led to these issues.
We appreciate your guidance and support. Thank you
Activity
llfbandit commentedon Nov 9, 2026
Thanks for the report.
Could you check:
audioInterruptionto.pause(the default). You can try with.none(recommended for diagnostic) or.pauseResume.The file seems playable, so for now I strongly assume that the recording is just paused and never resumed.
Either way, you should listen to onStateChanged() so your UI reflects the actual recorder state.
To keep the take going, you could set
audioInterruptionto.noneandAndroidRecordConfig.muteAudiototrue(to mute notifications and other system/app sounds).devbrisk commentedon Nov 9, 2026
This is my start recording code:
and stop recording:
final path = await _rec.stop();l will implement your suggestions in my app. This issue might be caused by not implementing your suggestions.
devbrisk commentedon Nov 13, 2026
We conducted various tests and realized that these issues were caused by the way we had implemented the audio functionality.
onStateChanged, we weren't aware that the recording had been paused.audioInterruptionand how it works, which led to these issues.We appreciate your guidance and support. Thank you
llfbandit commentedon Nov 13, 2026
Thanks for the feedback!