termux-tts-speak command audio focus issue
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 4.3k
- Forks
- 920
- PR merge metrics
- No merged PRs in 30d
Description
Problem description
tts sounds are played at the same times that other sounds because it doesn't request audio focus.
Steps to reproduce
Start music playing app like spotify, and trigger a termux-tts-speak on MUSIC stream.
Expected behavior
Spotify should lower its volume like it does when loosing audio focus.
Additional information
I think it could be fixed by adding audio focus, as described here: https://developer.android.com/guide/topics/media-apps/audio-focus.
- Termux application version:
- Android OS version: 11.1.1
- Device model: OnePlus 6T
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
Start at the implementation entry point for the termux-tts-speak command and review the linked Android audio focus guidance. Reproduce it with Spotify playing on the MUSIC stream, then verify that Spotify lowers its volume while the TTS output plays.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- audio-video-rtc, mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100