[Feature Request] Access to AudioPlaybackCapture API
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 4.3k
- Forks
- 920
- PR merge metrics
- No merged PRs in 30d
Description
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)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No repository files or tests are named. Start with the Android AudioPlaybackCapture documentation and the linked Roc Droid reference; completion should provide a Termux-accessible command that requests permission and exposes captured system audio through a FIFO or stdout.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- cli, mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100