I have an Android app that is used to play audio via the phone's speaker continuously, including when other apps are in the foreground, or the screen is off.
There is however a problem with that app in that the audio it plays can trigger the "OK Google" hotword detection, which leads to a bit of an endless loop, since the app also rewinds a few seconds upon being paused.
Thus there is no choice for the user but to disable the hotword detection entirely and permanently. That is not optimal.
Is there an API call that the app can use to disable the hotword detection temporarily while it is playing audio?