简体   繁体   English

安卓 通话录音

[英]Android. Call recording

My app records calls using standard MediaRecorder. 我的应用程序使用标准MediaRecorder记录通话。 After a few seconds after incoming call started, starting call recording (MediaRecorder.start). 传入呼叫开始几秒钟后,开始呼叫记录(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? 如何以编程方式解决问题?

I've resolved this problem. 我已经解决了这个问题。 AudioManager.setSpeakerphoneOn() true then false helped me. AudioManager.setSpeakerphoneOn()true,然后false帮助了我。 Thanks to all. 谢谢大家。

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". 语音流位于操作系统的较低级别,在“应用程序级别”上不可访问。

Plus it is illegal unless you follow some very strict guidelines, see the link. 另外,除非您遵循一些非常严格的准则,否则它是非法的,请参阅链接。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM