audioFocusGain

open fun audioFocusGain(focusGain: Int): SpeechPlayerProvider.Builder

Audio focus gain. One of AUDIOFOCUS_GAIN_TRANSIENT, AUDIOFOCUS_GAIN, and etc.

Default is AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK

See also

android.media.AudioManager

AudioManager#requestAudioFocus(AudioFocusRequest)