Android. How to Do Audio Recording with High Volume?
-
21-09-2019 - |
문제
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);
제휴하지 않습니다 StackOverflow