When using AudioRecorder to record audio and try to play it after, the audio is played in earpiece instead of speaker.
Do I need to reset the audio session after each recording process?
but I resolved the issue with setting the audio session after each time I am using AudioRecorder.
So I think the problem is that the AudioRecorder change the audio session each time.