I am using MediaRecorder to record a call in android. But I just want to record the voice of the caller. It can be done?
recorder.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL); recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); // mRecorder.setOutputFile("/sdcard/yousuck2.3gp"); if (audiofile == null) { File sampleDir = Environment.getExternalStorageDirectory(); try { audiofile = File.createTempFile("ibm", ".3gp", sampleDir); } catch (IOException e) { Log.e(TAG, "sdcard access error"); return; } }
What is the difference between VOICE_CALL , VOICE_UPLINK and VOICE_DOWNLINK ? I read Android docs but couldn't understand.
sheetal_158
source share