我想录制声音,但麦克风输入的声音太大了,我想调整麦克风音量,有人可以帮我吗?以下是主要代码:
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);