Lets have a look how it workrecorder.setAudioSource(MediaRecorder.AudioSource.MIC) : set the source of audio. Here mic is doing the work of recording taking user voice as inputrecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP) : Audio format in which you want output
Setting path to reuse the recorded Audio