title: How to adjust microphone sensitivity while recording audio in android
body: <p>I'm working on a voice recording app. In it, I have a Seekbar to change the input voice gain.
  I couldn't find any way to adjust the input voice gain.</p>
  
  <p>I am using the <code>AudioRecord</code> class to record voice.</p>
  
  <pre><code> recorder = new AudioRecord(MediaRecorder.AudioSource.MIC,
              RECORDER_SAMPLERATE, RECORDER_CHANNELS,
              RECORDER_AUDIO_ENCODING, bufferSize);
  
      recorder.startRecording();
  </code></pre>
  
  <p>I've seen an <a href="https://play.google.com/store/apps/details?id=com.grace.microphone" rel="nofollow noreferrer">app in the Google Play Store</a> using this functionality. </p>