Reputation: 85
I would like to stream microphone. And use http server on android so that user just go http://xxxx.xxx.xx.xxx/xxx.wav can listen to what I say? How can I do so?
Upvotes: 1
Views: 2344
Reputation: 1753
I would try to develop a small HTTP server which serves an FLV stream.
You can take ipcamera-for-android as an example. This app serves a FLV video stream however you could reuse the server and the FLV encoder part.
As FLV supports PCM streams you can simply copy the buffer of the microphone to your stream.
You can encode the microphone stream using the built-in MediaRecorder.AudioEncoder.AAC
. Afterwards you can simply serve the AAC as a stream to your client.
Upvotes: 1