Streaming Android Audio?
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Active
- Domain
- audio-video-rtc, mobile
Research direction
The issue asks whether Termux:API can stream Android microphone audio to a remote host using FFmpeg, but it does not identify a code path or define a requested project change. Read the related discussion in #360 and inspect the repository’s audio recording entry points to determine whether this is supported. Done would need a specific, documented behavior for recording or streaming audio; the issue does not provide acceptance criteria.
Written by the indexing model from the issue text.
Description
While apparently this issue has already been solved as detailed in #360, I'm still interested as far as the fundamentals of using Termux/Android to somehow stream audio. In the aforementioned thread, there's this line of code which is apparently meant to somehow stream microphone audio from the Android client to a remote host and pipe the output back to the client: ssh $USER@$HOST -p $PORT "pulseaudio -k; pulseaudio -L 'module-sles-source' -D ; rec -t wav -" | mpv - I'm simply curious as how exactly this works and if I can do a similar task with FFMPEG (if the software is installed on the remote host as the example above seems to suggest for pulseaudio). This question may already be answered, but I'm not an expert when it comes to audio/sound servers. I'd appreciate any constructive insight.
TL;DR - I'm wondering if (similar to the above code snippet) I can use FFMPEG on a remote machine to somehow record audio from the Android client's microphone: the general workflow would look like this:
- My Android phone securely connects to the remote machine
- The microphone audio is streamed from the client to the remote machine
- The output is either piped back to the client or otherwise stored as a local file on the remote machine in question.
- Dominant language
- Java
- Stars
- 4.5k
- Forks
- 969
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from termux/termux-api
-
JobSchedulerAPI NullPointerException with --network none on Android 17Possibly taken @Mayank-jaiswal13 claimed this 12 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
termux/termux-api#923 ·
-
Requesting Change System Settings permission failsPossibly taken @xJonathanLEI claimed this 188 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
termux/termux-api#864 · 1 comment ·
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
termux/termux-api#575 · 2 comments · 2 reactions ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
termux/termux-api#272 · 4 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 35/100
termux/termux-api#928 ·
All issues in termux/termux-api
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
IdentityArrayObjectSet iterator remove may throw ArrayIndexOutOfBoundsExceptionPossibly taken @jiteshkhatri11 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
javapathfinder/jpf-core#660 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
breaking change bug needs human review not ready priority medium size S
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
martin-francois/symphony-trello#1193 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day