简体   繁体   中英

Transmit Live Android Audio without SIP

I am looking to transmit audio in realtime from an Android application I am working on to a server in a way similar to how a baby monitor functions (one way listening).

I created a test app that uses SIP to initiate a VOIP call between our client and server applications. The problem is that now I need a way to do this on non-SIP enabled devices. I have tried recording the audio from the device microphone into a buffer, then sending the buffer in chunks to the server through HTTP objects and re-assembling the audio for playback with poor results.

Does anyone have any suggestions for streaming realtime audio from an Android device to a server application for processing? SIP works so well, but I don't have time to implement a SIP stack on all of our non supported devices.

XMPP/jingle (aka gtalk) is the usual alternative. There are C libraries as well as some support in java using the smack libraries. (The smack jingle support is old and doesn't work well, but IIRC someone is working on a new version)

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