Page 1 of 1
Deactivate Speaker when headphones are connected
Posted: 22 May 2019 19:20
by Oelle
Hi,
I'd like to deactivate the speaker when the headphones are connected (e.g. for ringtone or notifications).
I have a Samsung Galaxy A40 (Android 9).
I tried the following:
Trigger: Cable headphone is connected
Condition: Speaker is on
Action: Turn-Off speaker
But it does not work. Does anyone has an idea?
Thanks!
Re: Deactivate Speaker when headphones are connected
Posted: 25 May 2019 15:54
by Desmanto
This depends on the ROM of the phone. Most phones will still play the ringtone/notification on speaker. There is an app called Sound About which can redirect the sound. But It is better you just set the ringtone/notification to zero when headset is connected. You can create another flow for notification/incoming call to play certain sound file as the ringtone/notificatiaon replacement.
Re: Deactivate Speaker when headphones are connected
Posted: 28 May 2019 04:50
by Oelle
Hi,
I have Android 9 and SoundAbout does not work...
Any other idea?
Thanks!
Re: Deactivate Speaker when headphones are connected
Posted: 01 Jun 2019 19:44
by Desmanto
That means you have to use the alternative method I posted above, set your ringtone silent. Then create additional sound action with trigger Notification on Statusbar Display and Incoming Call. It is more complicated, but it works better. In total, if you separate the flow, you will need 5 flows.
1. Trigger Wired headset plugged, action set ringtone/notification volume to zero (you can optionally store the audio volume first before setting it to zero) and enable flow 3, 4, 5
2. Trigger Wired headset unplugged, action set ringtone/notification volume to the default level (optionally, simply restore Audio volume), disable flow 3, 4, 5
3. Trigger Incoming Call - Ringing, action sound, choose the ringtone to play
4. Trigger Incoming Call - Off-hook, action stop sound (to stop the ringtone)
5. Trigger Notification on Statusbar Displayed, action sound, choose a short notification sound.
If you combine them using multiple parallel expression, you only need 2 flows, where 1+2, then 3+4+5.