Record only caller's voice in android -


i using media recorder recording call in android. want record caller's voice.. can 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;         }     } 

also difference between voice_call, voice_uplink , voice_downlink??? read on android docs... did not understand. plz :)

before time ago have same problem searching lot found simple word solution https://stackoverflow.com/a/13090413/3514144 come know voice_uplink: audio transmitted end other party. iow, speak microphone (plus surrounding noise depending on whether noise suppression used , how performs).

voice_downlink: audio transmitted other party end.

voice_call: voice_uplink + voice_downlink.

so use record format downlink , work fine hope simple word distinguishes


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -