How to increase volume of sound recorded using AVAudioRecorder

Parth Bhatt picture Parth Bhatt · Apr 13, 2011 · Viewed 17.3k times · Source

I am using the link mentioned below to record audio through my iPhone app:

How do I record audio on iPhone with AVAudioRecorder?

When I try to play my recordings using AVAudioPlayer on my device, I have seen that the sound volume of my recordings is very low even when my device volume is full.

Recording is working fine.

What can be done to increase the volume?

Answer

Hollance picture Hollance · Apr 14, 2011

When recording audio, set the audio session to AVAudioSessionCategoryPlayAndRecord or just AVAudioSessionCategoryRecord. When you're done, set it back to just AVAudioSessionCategoryPlayback.