简体   繁体   中英

Streaming microphone audio from iPhone to outside server

I've seen questions on here about this, but no can't find any solutions. Does anyone have a push in the right direction for streaming audio picked up from the mic to a server? Like a one-way walkie talkie.

You'll need a combination of AVCaptureSession and AVCaptureDevice to read from the microphone - see the AV Foundation Programming Guide.

Then once you've got the data you'll need to stream it up to a server. Use TCP/IP sockets (see the CFNetwork Programming Guide).

Then just read the mic data, optionally transform it (compress, bit rate etc) and push it down the socket.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM