iPhone 开发 - 如何用音频文件的内容覆盖麦克风
有谁知道如何用音频文件的内容覆盖 iPhone 麦克风?
想象一下这样的场景:您正在通话,并且想要播放一些简短的音频让其他人听到。
因此,有必要保持麦克风(硬件),并使用委托将音频文件的内容写入麦克风缓冲区,在音频完成后,委托将返回正常状态,其中麦克风写入其麦克风缓冲。
是否可以?
谢谢!
PS:我不确定要为这个问题添加什么标签,所以如果有人知道需要使用哪些框架,或者有任何标签建议,请告诉我我会更改它们。
Does anyone knows how to override the iPhone microphone with the content of an audio file?
Imagine a scenario where you are in a call and you wants to play some short audio to the other person hear it.
So, it would be necessary put the microphone (hardware) on hold, and write the content of the audio file into the mic buffer, using a delegate, after the audio finish the delegate would return the normal state, where the mic write on its buffer.
Is it possible?
Thanks!
PS: I am not sure about what tags to put for this question, so if someone knows which frameworks would be necessary to be used, or any tag suggestion, let me know that I change the them.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当前的 SDK 无法实现这一点。
您能做的最好的事情就是让用户将手机置于免提模式,然后打开您的应用程序,然后大声播放声音。然后麦克风就会拾取它。
This isn't possible with the current SDK.
The best you can do is to get the user to put the phone into Speakerphone mode, then open your application and then play the sound at loud volume. The microphone would then pick it up.