termux-api icon indicating copy to clipboard operation
termux-api copied to clipboard

termux-tts-speak command audio focus issue

Open thpiron opened this issue 4 years ago • 0 comments

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

thpiron avatar Nov 22 '21 23:11 thpiron