jsierles / react-native-audio

Audio recorder library for React Native
MIT License
1.16k stars 538 forks source link

Android: Mic does not record first 1.5 seconds. #275

Open peakyDicers opened 6 years ago

peakyDicers commented 6 years ago

Version 3.6.0

Tell us which versions you are using ( you can see the versions in your package.json ):

react-native-audio : "3.6.0" react-native : "^0.51.0", react : "^16.2.0" using react-native-sound ? Yes

Expected behaviour :

What were you trying to do and what did you expect to happen ? Record audio with android.

Actual behaviour

The first two seconds or so as you listen to the recording, you can clearly tell that the mic volume is raising from 0 to 100. The sound begins off mute, then gets louder to regular volume. This is not a problem with react-native-sound because on IOS, recording is instant and mic volume begins at 100%.

This is annoying because you cannot hear the first .6 seconds of the recording.

Importing the audio file into audacity, you can see that the first .6 seconds are mute, and then a crescendo appears for the next .3 seconds. The audio file is of a consistent long 'beep' sound.

image

Steps to reproduce

Record audio with android playing a steady sound at 1 volume. Listen back to the recording, and you will hear a crescendo in the first .5 seconds.

fendorio commented 5 years ago

Experiencing this with

  "react": "16.8.3",
   "react-native": "0.59.0",
   "react-native-audio": "4.3.0",