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
Post a Comment