NateRickard / Plugin.AudioRecorder

Audio Recorder plugin for Xamarin and Windows
MIT License
164 stars 68 forks source link

Quiet voice results in null audio file. #56

Open stevewinn74 opened 3 years ago

stevewinn74 commented 3 years ago

I'm building an app where recording the user is part of the functionality (for accent analysis) and for the most part this competent works well.

However, for some devices (P20 Pro, I'm looking at you), the microphone input is very quiet unless the user shouts into the primary mike. The secondary mike seems not to be used.

When a user is too quiet, typically this results in recorder.GetAudioFilePath() being NULL. This is frustrating for the users to have to repeat themselves and raise their voice.

Is there any way around this? Will changing the silence threshold help (we are using manual start/stop record)? Can we activate all the microphones on a users phone (there is another on the top)?

Any advice from anyone would help.

ali-h2010 commented 3 years ago

i have the same issue in iPhone 11 Pro max. What could be the reason? in the simulator, the voice is clear.

BramFP commented 3 years ago

You should set the SilenceThreshold to 0, this defaults to 0.15 as can be seen in the README which causes a silent recording to register as nothing.