iOS-在Objective C中录制通话时的语音 [英] iOS - Record the Voice while phone call in Objective c

查看:153
本文介绍了iOS-在Objective C中录制通话时的语音的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能在通话时记录用户语音的应用程序?

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

我进行了搜索,接到电话后,AVFoundation Framework似乎停止了录制.我不想记录整个通话,我只是想记录iPhone用户所说的话.

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.

如果无法按照我的意愿进行操作,则必须创建自己的VoIP连接,然后才能进行记录,对吗?

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?

推荐答案

Apple没有直接的方法或API来满足您在通话时录制语音的需求. AVAudioRecorder也将不支持它.因为一旦开始通话,它将停止. 但是,有一些类似钩子AudioUnitProcess的方法可以访问电话的音频流并将其另存为m4a.此操作无需越狱即可,但不确定Apple应用程序商店审查团队是否会接受.

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.

还可以创建自己的VoIP连接方法,以便在通话过程中进行录音.

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

这篇关于iOS-在Objective C中录制通话时的语音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆