TTSAgentInterface

interface TTSAgentInterface

Interface for TTS Capability Agent

Types

Link copied to clipboard
enum Format : Enum<TTSAgentInterface.Format>
Link copied to clipboard
interface Listener

Interface of a listener to be called when there has been an change of state

Link copied to clipboard
interface OnPlaybackListener
Link copied to clipboard
enum State : Enum<TTSAgentInterface.State>

State of TTSAgent

Functions

Link copied to clipboard
abstract fun addListener(listener: TTSAgentInterface.Listener)

Add a listener to be called when a state changed.

Link copied to clipboard
abstract fun removeListener(listener: TTSAgentInterface.Listener)

Remove a listener

Link copied to clipboard
abstract fun requestTTS(    text: String,     format: TTSAgentInterface.Format = Format.TEXT,     playServiceId: String?,     listener: TTSAgentInterface.OnPlaybackListener?): String
Link copied to clipboard
abstract fun setVolume(volume: Float)

Sets the player's volume for tts.

Link copied to clipboard
abstract fun stopTTS(cancelAssociation: Boolean)

Remove a listener

Inheritors

Link copied to clipboard