简体   繁体   English

在Android中录制语音通话

[英]Recording voice calls in android

I want to make an app that records incoming and outgoing calls. 我想制作一个记录来电和去电的应用程序。 I am using the media recorder to do so and also I am using service/broadcastreceiver to detect phone state change. 我正在使用媒体记录器来执行此操作,也正在使用服务/广播接收器来检测电话状态变化。 I have set the audio source as Audiosource.VOICE_CALLS.I am able to record voices at my end but not from the other end. 我已将音频源设置为Audiosource.VOICE_CALLS。我可以在一端录制声音,但不能从另一端录制声音。 The same happens when the audio source is set as Audiosource.MIC. 将音频源设置为Audiosource.MIC时,也会发生同样的情况。

Please suggest a solution. 请提出解决方案。

You cannot access the incall audio stream in Android using the public SDK. 您无法使用公共SDK访问Android中的通话音频流。 Call audio is not exposed to apps, and you can only do this if you modify Android at a source level, and then build and install a new image from the customized source to your device. 通话音频不会公开给应用程序,只有在源级别修改Android,然后将新图像从自定义源构建并安装到设备后,您才能执行此操作。

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

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