DefaultTTSAgent

class DefaultTTSAgent(    speechPlayer: MediaPlayerInterface,     messageSender: MessageSender,     focusManager: SeamlessFocusManagerInterface,     contextManager: ContextManagerInterface,     playSynchronizer: PlaySynchronizerInterface,     interLayerDisplayPolicyManager: InterLayerDisplayPolicyManager,     cancelPolicyOnStopTTS: DirectiveHandlerResult.CancelPolicy,     channelName: String) : AbstractCapabilityAgent, TTSAgentInterface, MediaPlayerControlInterface.PlaybackEventListener, PlayStackManagerInterface.PlayContextProvider, StopDirectiveHandler.Controller, InterLayerDisplayPolicyManager.Listener

Constructors

Link copied to clipboard
fun DefaultTTSAgent(    speechPlayer: MediaPlayerInterface,     messageSender: MessageSender,     focusManager: SeamlessFocusManagerInterface,     contextManager: ContextManagerInterface,     playSynchronizer: PlaySynchronizerInterface,     interLayerDisplayPolicyManager: InterLayerDisplayPolicyManager,     cancelPolicyOnStopTTS: DirectiveHandlerResult.CancelPolicy,     channelName: String)

Types

Link copied to clipboard
object Companion

Functions

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

Add a listener to be called when a state changed.

Link copied to clipboard
open override fun cancelDirective(messageId: String)
Link copied to clipboard
open override fun getPlayContext(): PlayStackManagerInterface.PlayContext?
Link copied to clipboard
open override fun handleDirective(messageId: String): Boolean
Link copied to clipboard
open override fun onDisplayLayerCleared(layer: InterLayerDisplayPolicyManager.DisplayLayer)
Link copied to clipboard
open override fun onDisplayLayerRendered(layer: InterLayerDisplayPolicyManager.DisplayLayer)
Link copied to clipboard
open override fun onPlaybackError(    id: SourceId,     type: ErrorType,     error: String)
Link copied to clipboard
open override fun onPlaybackFinished(id: SourceId)
Link copied to clipboard
open override fun onPlaybackPaused(id: SourceId)
Link copied to clipboard
open override fun onPlaybackResumed(id: SourceId)
Link copied to clipboard
open override fun onPlaybackStarted(id: SourceId)
Link copied to clipboard
open override fun onPlaybackStopped(id: SourceId)
Link copied to clipboard
open override fun preHandleDirective(directive: Directive, result: DirectiveHandlerResult)
Link copied to clipboard
open override fun provideState(    contextSetter: ContextSetterInterface,     namespaceAndName: NamespaceAndName,     contextType: ContextType,     stateRequestToken: Int)
Link copied to clipboard
open override fun removeListener(listener: TTSAgentInterface.Listener)

Remove a listener

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

Sets the player's volume for tts.

Link copied to clipboard
open override fun stop(payload: StopDirectiveHandler.Payload)
Link copied to clipboard
open override fun stopTTS(cancelAssociation: Boolean)

Remove a listener

Properties

Link copied to clipboard
open override val configurations: Map<NamespaceAndName, BlockingPolicy>
Link copied to clipboard
override val namespaceAndName: NamespaceAndName