AudioManager

Manages the playback of audio output from files or TTS

Types

Link copied to clipboard
annotation class AudioRoute
Link copied to clipboard
Link copied to clipboard
annotation class PlayStatus
Link copied to clipboard

Functions

Link copied to clipboard

Adds a PlayStatus listener
Link copied to clipboard
open fun clearQueue()
Removes all output from the audio queue.
Link copied to clipboard
open fun getAudioRoute(): Int
Link copied to clipboard
Link copied to clipboard
open fun playOutput(audioOutput: AudioOutput)
Plays audio output.
Link copied to clipboard
Redirect the PCM data output to PCMDataOutputCallback Setting callback to null will reset audio output to normal
Link copied to clipboard
Redirect the TTS text to TTSOutputCallback Setting callback to null will reset audio output to normal
Link copied to clipboard
open fun setAudioRoute(audioRoute: Int)
Link copied to clipboard
open fun setHfpDelay(hfpDelay: Int)
Link copied to clipboard
Skips the output at the front of the queue
Link copied to clipboard
Stops playing the current output immediately and clears any queued output