setAudioSource(MediaRecorder.AudioSource.VOICE_CALL);
setAudioSource(MediaRecorder.AudioSource.VOICE_DOWNLINK);
setAudioSource(MediaRecorder.AudioSource.VOICE_UPLINK);
I am new to android and i am trying to save/record call voice.Any one of the above not recording any kind of voice.i google it every where but no success.After searching i found that phone recording depends on the the android phone.Because the media server(Audio Flinger) provided with android os is not capable of doing so.
http://forum.dailymobile.net/index.php?topic=60929.0;wap2
https://gitorious.org/android-eeepc/base/source/08defa03546578b8c71a26668de8ff8feed727fd:libs/audioflinger/AudioFlinger.cpp
http://www.chilkatsoft.com/chilkatAndroid.asp
The following is working for me:
m_mediaRecorder = new MediaRecorder();
m_mediaRecorder.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL);
m_mediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
m_mediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.