문제

I will describe briefly my trouble with audio recording.

So, I am doing audio recording using MediaRecorder, but unfortunately when I playback the recorded audio, I have media with a very low volume. I hardly hear anything.

Is there any possibility to setup recording volume?

Thanks.

도움이 되었습니까?

해결책

There is no way to do this while recording - but while playing, you can use the setVolume(float, float) method on MediaPlayer.

다른 팁

I experienced this issue on the Nexus One while using Froyo when the AudioManager was set to MODE_IN_CALL. Try setting it to MODE_NORMAL. This fixed the problem for me.

AudioManager audioManager = (AudioManager)activity.getSystemService(Context.AUDIO_SERVICE);
audioManager.setMode(AudioManager.MODE_NORMAL);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top