从 iPhone 4 上的一个或两个麦克风录音
iPhone 4 有两个内置麦克风,一个位于标准位置,另一个位于耳机插孔旁边。我知道这款新麦克风用于通话时降噪,但它也用于 FaceTime、视频、免提通话等。
我有充分的理由希望能够选择使用哪个麦克风进行录音,无论是新麦克风还是新麦克风或旧的甚至同时两者。
有谁知道如何路由 avaudiorecorder,以便我可以选择上述任何正在录制的选项?
提前致谢
The iPhone 4 has two built in microphones, one in the standard place and one sitting next to the headphone jack. I know this new mic is used for noise reduction in calls but it is also used on facetime, videoing, speakerphone calls etc.
I have a valid reason that I want to be able to choose which mic to record from, be it the new one or the old AND even both at same time.
Does anyone know how to route avaudiorecorder so I can choose any of the above options of what is being recorded?
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我知道这是一个古老的问题,但为了将来的参考,以防其他人正在寻找相同的答案,我将在这里提供一些信息。 AVAudioSession 文档中有一个部分 解释了从 iOS7 开始,有一种方法可以显式地执行此操作:
在较旧的操作系统中,您只能选择
AVAudioSessionMode
来影响麦克风的选择。I know this is an ancient question, but for future reference in case others are looking for the same answer, I'll put some information here. There is a section in the AVAudioSession documentation that explains that since iOS7, there is a way to do this explicitly:
In older OS's, you could only choose the
AVAudioSessionMode
to affect the choice of microphone.