TTSAgentDelegate

public protocol TTSAgentDelegate : AnyObject

An delegate that appllication can extend to register to observe TTSAgent state changes.

  • Used to notify the observer of TTSState changes.

    Declaration

    Swift

    func ttsAgentDidChange(state: TTSState, header: Downstream.Header)

    Parameters

    state

    The new TTSState of the TTSAgent

    • header: The header of the originally handled directive.

  • Tells the delegate that TTSAgent received TTS directive

    Declaration

    Swift

    func ttsAgentDidReceive(text: String, header: Downstream.Header)

    Parameters

    text

    The text to play.

    • header: The header of the originally handled directive.