Audio Manager
Manages the playback of audio output from files or TTS
Types
AudioRoute
Link copied to clipboard
PCMDataOutputCallback
Link copied to clipboard
interface PCMDataOutputCallback
Content copied to clipboard
PlayStatus
Link copied to clipboard
PlayStatusListener
Link copied to clipboard
TTSOutputCallback
Link copied to clipboard
interface TTSOutputCallback
Content copied to clipboard
Functions
addPlayStatusListener
Link copied to clipboard
open fun addPlayStatusListener(listener: AudioManager.PlayStatusListener)
Content copied to clipboard
open fun addPlayStatusListener(listener: AudioManager.PlayStatusListener, @Nullable() executor: Executor)
Content copied to clipboard
clearQueue
Link copied to clipboard
getAudioRoute
Link copied to clipboard
playOutput
Link copied to clipboard
redirectPCMDataOutput
Link copied to clipboard
open fun redirectPCMDataOutput(callback: AudioManager.PCMDataOutputCallback)
Content copied to clipboard
Redirect the PCM data output to PCMDataOutputCallback Setting callback to null will reset audio output to normal
redirectTTSOutput
Link copied to clipboard
Redirect the TTS text to TTSOutputCallback Setting callback to null will reset audio output to normal
removePlayStatusListener
Link copied to clipboard
open fun removePlayStatusListener(listener: AudioManager.PlayStatusListener)
Content copied to clipboard
setAudioRoute
Link copied to clipboard
setHfpDelay
Link copied to clipboard
skipCurrentOutput
Link copied to clipboard
stopOutputAndClearQueue
Link copied to clipboard
open fun stopOutputAndClearQueue()
Content copied to clipboard