Android. Call recording

2019-06-01 06:32发布

问题:

My app records calls using standard MediaRecorder. After a few seconds after incoming call started, starting call recording (MediaRecorder.start). After this, interlocutor hear me very bad. If I connect/disconnect headphones during recording, then problem disappeared. How do resolve the problem programmatically?

回答1:

I've resolved this problem. AudioManager.setSpeakerphoneOn() true then false helped me. Thanks to all.



回答2:

From what I understand, this is possible on some phones, but the general answer is that you can't record calls. The streams for voice are in a lower level of the operating system and aren't accessible on the "application level".



回答3:

Plus it is illegal unless you follow some very strict guidelines, see the link.

http://transition.fcc.gov/cgb/consumerfacts/recordcalls.html