I want to recorder the sound, but the mic (microphone) input sound is too loud, and I want to adjust the mic volume, would someone help me? The following is the main code:
private int audioSource = MediaRecorder.AudioSource.MIC;
private static int sampleRateInHz = 8000;
private static int channelConfig = AudioFormat.CHANNEL_CONFIGURATION_MONO;
private static int audioFormat = AudioFormat.ENCODING_PCM_16BIT;
audioRecord = new AudioRecord(audioSource, sampleRateInHz,channelConfig, audioFormat, bufferSizeInBytes);
audioManager.setSpeakerphoneOn(false);