我应该使用哪个 iPhone API 来传输音频?
我正在寻找构建一个与 voip 应用程序非常相似的小玩具应用程序。一个人拿着一部 iPhone 并与另一部 iPhone 通话。我不想使用 gamekit,因为它强制使用 p2p 连接并且无法在 3g 上工作。我稍后会担心服务器端的问题,但只想从 iPhone 端开始。哪个 API 可以实时录制音频以及哪个 API 可以回放?
I'm looking to build a little toy app that is very similar to a voip application. One person would hold one iphone and talk to the other iphone. I don't want to use gamekit because it forces a p2p connection and does not work over 3g. I'm worrying about the server side of this later but just wanted to get started with the iPhone side of it. Which API to record audio in real time and which to play it back?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用音频队列服务进行捕获和录制。您需要提出一个有线协议来传输音频,但是可以使用队列服务构建在连接两侧捕获和播放或保存的工具。
Look to Audio Queue Services for capture and recording. You'd need to come up with a wire protocol to transmit the audio, but the tools to capture and playback or save on either side of the connection can be built using the queue services.