Audio Stream WiFi to WiFi - Broadcast

此生再无相见时 提交于 2019-12-11 09:33:47

问题


I have a requirement for an IOS app where a user will start the app, records an audio speech (via device microphone) which would be broadcast to other user on the same network, all this has to be live over wireless connection(WIFI).

I did some research for possible solutions and also tried audio streaming via HTTP URL, but it was not feasible and also involves internet.

I'm looking for your opinions and if it's doable then what is the right approach, (what libraries and API's should I look for)

I'm novice to iOS development, i would really appreciate if you could explain in detail.

Thanks in advance.


回答1:


Yes, it is doable. You will need two major components: A network API to send/receive data , and audio capture and playback API.

For network library, you can try CocoaAsyncSocket. It is quite simple to use.

You can use UDP protocol with multicast address. Even thought you said you wanted to broadcast, but you would be better off using multicast ( send to a group of devices).

For Audio sample how to capture and playback, check out my answer on this .



来源:https://stackoverflow.com/questions/18784105/audio-stream-wifi-to-wifi-broadcast

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