audio_waveforms icon indicating copy to clipboard operation
audio_waveforms copied to clipboard

Audio Recording Issue in audio_waveforms v1.0.5(Android)

Open Nehal-1234 opened this issue 11 months ago • 5 comments

Describe the bug When recording audio using the audio_waveforms package (version ^1.0.5), the recorded voice is not captured properly on Android devices. The recording includes unintended background noise or other external sounds that should not be part of the recording. This issue is not present on iOS devices, where the recording works as expected.

To Reproduce Steps to reproduce the behavior:

Go to the part of the app where audio recording is implemented.

Tap on the 'Record' button to start recording audio.

Speak into the device's microphone.

Stop the recording and play it back.

Notice that the recorded audio contains additional background sounds or unintended noise on Android devices.

Expected Behavior The recorded audio should only capture the user's voice without any additional noise or interference. This behavior is already achieved on iOS devices but not on Android.

Smartphone (please complete the following information):

Device: Samsung Galaxy S23, Vivov2025, OPPO F15

OS: [Android 11 to 14]

Version: [ audio_waveforms v1.0.5]

Screenshots see the difference between Android and iOS :

Additional Context This issue is specific to Android devices and does not affect iOS devices.

Nehal-1234 avatar Dec 14 '24 07:12 Nehal-1234

Hi @Nehal-1234, can you please increase the bitrate and check that the noise is still in the recording sound?

jay-simformsolutions avatar Dec 18 '24 06:12 jay-simformsolutions

Yes @jay-simformsolutions , I increased the bitrate, but the noise issue persists. I also tested it with version 1.1.0, but there was no improvement. The app is live, and we are receiving complaints from Android users. Can you please help resolve this issue?

Nehal-1234 avatar Dec 18 '24 09:12 Nehal-1234

@Nehal-1234, can you please provide us the value of bit rate you have set?

jay-simformsolutions avatar Dec 19 '24 10:12 jay-simformsolutions

@jay-simformsolutions ,here is the bitRate = 256000 and also I tried with 512000

Nehal-1234 avatar Dec 20 '24 03:12 Nehal-1234

Hi @Nehal-1234, We currently record audio using MediaRecorder. However, to add noise suppression functionality, we need to change the class from MediaRecorder to AudioRecord, which will require more effort.

But we will take your issue as an enhancement and add a noise suppression feature as well.

Thanks for filling this issue.

jay-simformsolutions avatar Dec 24 '24 14:12 jay-simformsolutions