Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we Increase the gain of mic of an android phone?

Tags:

android

audio

I am trying to increase the gain of the mic of an android phone so that it will be capable of hearing very minute sounds.Is it possible? Can you please help me with this.

like image 561
srikanth Avatar asked Sep 23 '10 16:09

srikanth


1 Answers

this link should bring you further. use setStreamVolume(...) to set volume higher. but note that there is a maximum that can be asked for by calling getStreamMaxVolume(...). so mic gain is probably limited by hardware i would guess. so it is rather not possible to do this "on-fly" but what about recording a bit, trying to amplify a special frequency by equalizer and then recognize something like a heartbeat? sounds hard but maybe possible.

like image 59
mad Avatar answered Sep 21 '22 17:09

mad