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] Access to AudioPlaybackCapture API #721

Open
ask6155 opened this issue Oct 22, 2024 · 0 comments
Open

[Feature Request] Access to AudioPlaybackCapture API #721

ask6155 opened this issue Oct 22, 2024 · 0 comments

Comments

@ask6155
Copy link

ask6155 commented Oct 22, 2024

Feature description
I run a snapserver on my phone which is available as a termux package.
The snapserver can take input in various ways but some of them have been limited due to it running under termux (For eg. I couldn't take ALSA input)
What I have been doing is running music through mpd and piping it to snapserver (all in termux)
What I'd like to do is instead take system output directly from android using the AudioPlaybackCapture API and pipe it into my snapserver. That way I can play whatever I want on my phone and the snapclients will receive it.

basically a script which will ask me permission to record system audio and I can configure it to ouput to fifo or stdout

Reference implementation

Yes AudioPlaybackCapture is available since android 10.

I have used Roc Droid and it works well if I want to share audio to another device. It uses this API I think (I'm not sure)

@ask6155 ask6155 changed the title Access to AudioPlaybackCapture API [Feature Request] Access to AudioPlaybackCapture API Oct 22, 2024
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

1 participant