Kishor Bapat
Lurker
We have created a Call Announcer app which can announce the name of the caller through a Bluetooth Headphone.
The app works perfectly in Android 9. We have tested with One Plus and Samsung phones.
However when we started testing with Android 10, only the phone ringtone is heard instead of our announcement for incoming calls. Outgoing call announcements still work fine.
The app uses AudioManager to play the announcement which is embedded in the text to speech engine.
We have tried to request audio focus before the announcement and release focus after the announcement.
We have also tried using the following:
a. AudioManager.STREAM_VOICE_CALL
b. AudioManager.STREAM_MUSIC
c. AudioStream.MODE_NORMAL
d. AudioManager.STREAM_RING
We checked the Bluetooth settings for the connected device, There are two options under Used for:
1. Phone Audio
2. Media Audio
If Phone Audio is switched off. the announcement plays through the headphones but no conversation.
If Phone Audio is switched on, announcement does not play but conversation is heard.
Any advice on fixing this issue in Android 10 is appreciated. The devices we have tested with Android 10 are a Nokia and Motorola device.
The app works perfectly in Android 9. We have tested with One Plus and Samsung phones.
However when we started testing with Android 10, only the phone ringtone is heard instead of our announcement for incoming calls. Outgoing call announcements still work fine.
The app uses AudioManager to play the announcement which is embedded in the text to speech engine.
We have tried to request audio focus before the announcement and release focus after the announcement.
We have also tried using the following:
a. AudioManager.STREAM_VOICE_CALL
b. AudioManager.STREAM_MUSIC
c. AudioStream.MODE_NORMAL
d. AudioManager.STREAM_RING
We checked the Bluetooth settings for the connected device, There are two options under Used for:
1. Phone Audio
2. Media Audio
If Phone Audio is switched off. the announcement plays through the headphones but no conversation.
If Phone Audio is switched on, announcement does not play but conversation is heard.
Any advice on fixing this issue in Android 10 is appreciated. The devices we have tested with Android 10 are a Nokia and Motorola device.