r/tasker • u/19leo82 • 21d ago
Help Need help to create this simple task pls
Whenever I open my Gboard and hit on the mic icon to say something to type in, I get the high-tone beep which is so annoying. Is there a way to switch to DND mode or just mute the system volume or something to get rid of this beep sound? Please help
4
u/osmols_b 21d ago
If you want a cleaner solution than the other one posted which is a bit like a hammer to crack an egg...
That tone is controlled by the Media volume, you don't need to mute the System volume.
If you want to mute Media volume only when Gboard is open, you can set up a logcat Profile to detect when it opens and a second for when it closes. (This way, you don't have to worry about the one second delay referenced in the other comment's link).
When it opens, you can make a Task to set Media volume to 0. When it closes, a second Task can set it back to whatever level you choose. Link your two Profiles to the respective Tasks.
If you haven't yet given Tasker permission to read the logcat, you can use the ADB command:
adb shell pm grant net.dinglisch.android.taskerm android.permission.READ_LOGSFollowing the grant, you must force stop Tasker using another ADB command to make the permission take effect:
adb shell am force-stop net.dinglisch.android.taskermLogcat Profile to detect Gboard open:
Component:
GoogleInputMethodServiceFilter:
~RGoogleInputMethodService.on(Start)InputView()Logcat Profile to detect Gboard closed:
Component:
ImeTrackerFilter:
onRequestHide0
21d ago
[deleted]
2
u/osmols_b 21d ago
That will kill all Gboard sounds such as key tap sounds.
Also, it's always good practice provide the command for people if they want to reverse it again.
adb shell cmd appops set com.google.android.inputmethod.latin PLAY_AUDIO defaultDepending on the phone's ROM, Android version and other factors, it is sometimes the Google App which issues that tone. In this scenario your command won't work (com.google.android.googlequicksearchbox).
0
21d ago
[deleted]
2
u/osmols_b 20d ago
...Whilst he's trying to dictate into Google's speech synthesis mechanism... which pauses media playback automatically anyway.
1
u/Exciting-Compote5680 21d ago
https://www.reddit.com/r/tasker/s/ar2P9BDrvE