Feature request: SimpleProtocolRecorder
Opened this issue · 5 comments
Probably better as a separate app.
Should listen a port and start recording on a connection to it.
Start on boot and background operation would also be nice.
Because this is PCM, your SDcard will fill up fast. Might be fun to try and encode in mp3 or something on the fly.
But I have to ask, why?
It'd be just as easy to just record on the host.
Why SDcard? And there are already programs to record sound and write mp3. Just serve PCM on TCP, like SimpleProtocolPlayer plays from TCP.
The data will probably go into FFmpeg, then to network. Or it may go to some analyzer program and not be saved at all. Or it may go into PulseAudio / ALSA loopback.
The latency should be low and adjustable like in SimpleProtocolPlayer.
SimpleProtocolRecorder + SimpleProtocolPlayer should make simplistic (unreliable) sound transfer.
Ah, you want to serve uncompressed audio from Android to pulse. I actually already opened a ticket for that: #10
The problem is that there's no easy way to capture the full muxed audio from Android other than using the really low quality audio visualizer hooks.
Maybe I need to go native and hook into OpenSLES? I dunno.
Actually, if you have examples of "programs to record sound and write mp3", can you point me to that?
I meant built-in audio recorder probably...
On SE Xperia X10 I used /dev/msm_pcm_in
(in root mode) to record sound from console unconditionally and with low delay. Ideally I want something like this, but portable between devices. Just record the sound from mic and send to socket regardless of Android state (idling, playing music, during the call, etc.), like on desktop Linux.