iOS - Record the Voice while phone call in Objective c

自古美人都是妖i 提交于 2019-12-23 05:15:10

问题


Is it possible for an app which records the voice of the user while a phone call?

I searched for it and the AVFoundation Framework seems to stop recording when a phone call is incoming. I don't want to record the whole call, I am just interested in record what the user of the iPhone is saying.

I know that this possibility might be a safety risk, but it would be nice for e.g an interview.

In case of no possibility to do it like i want, i have to create my own VoIP connection and then i can record it, am i right?


回答1:


There is no direct way or API from Apple to achieve your need of recording voice while phone call. AVAudioRecorder wont support it as well. Because it will be stopped once the call begin. But there are work around like hook AudioUnitProcess in order to access phone call's audio streams and save it as m4a. This will work without jailbreak but not sure this will be accepted by Apple app store review team.

For more info on the work around check this SO accepted answer.

Also creating your own VoIP connection method work for recording during phone call.




回答2:


There are Cydia tweaks which are able to do that. For example CallRecorder.



来源:https://stackoverflow.com/questions/41439021/ios-record-the-voice-while-phone-call-in-objective-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!