Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun interface PCMDataOutputCallback
Link copied to clipboard
Link copied to clipboard
fun interface TTSOutputCallback

Functions

Link copied to clipboard
Link copied to clipboard

Removes all output from the audio queue. Currently played output will be allowed to finish

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun playOutput(audioOutput: AudioOutput)

Plays audio output. If audio queue is empty, output will be played immediately. Otherwise it will be added to the end of the queue and played later. Method is asynchronous so it is not waiting for sound playback itself. Note: If audio output is from file, make sure to have sufficient permission to read file (READ_EXTERNAL_STORAGE)

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
Link copied to clipboard
fun setHfpDelay(delay: Int)
Link copied to clipboard
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