How to capture voice and stream it live
Please Login to Remove!
how to capture voice and stream it live?
Options
* Edit Message
*
* Mark as New
* Bookmark
* Subscribe
*
* Subscribe to RSS Feed
*
* Highlight
* Print
* Email to a Friend
*
* Report Inappropriate Content
05-21-2010 07:47 AM
Hey,
I am trying to stream audio packets captured by the blackberry microphone to my server.
To do so, I am using a player and a record control with a xxx65279;xxx65279;xxx65279;ByteArrayOutputStream but instead of recording the stream in a file, I am reading the buffer continuously and send the packets over the network. It works fine but I get a 500ms delay at the receiver side.
The problem is that the recordControl only write chunks of 1024 byte at once (which is about 600ms of voice), and thus streaming of the voice is delayed by half a second.
DO you know if I can have the recordControl write smaller chunks? Is there another library that I can use which does not have that defect?
THanks for your help.
|