Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: SimpleProtocolRecorder #13

Open
vi opened this issue Jul 26, 2016 · 5 comments
Open

Feature request: SimpleProtocolRecorder #13

vi opened this issue Jul 26, 2016 · 5 comments

Comments

@vi
Copy link

vi commented Jul 26, 2016

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.

@kaytat
Copy link
Owner

kaytat commented Jul 27, 2016

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.

@vi
Copy link
Author

vi commented Jul 27, 2016

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.

@kaytat
Copy link
Owner

kaytat commented Jul 28, 2016

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.

@kaytat
Copy link
Owner

kaytat commented Jul 28, 2016

Actually, if you have examples of "programs to record sound and write mp3", can you point me to that?

@vi
Copy link
Author

vi commented Jul 28, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants