tjbot-ce - v3.0.0
    Preparing search index...

    Class TTSController

    TTS controller manages text-to-speech synthesis and engine lifecycle. TTS engine is eagerly initialized during setupSpeaker() and cached for reuse.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Clean up TTS resources.

      Returns Promise<void>

    • Initialize the TTS backend Called during setupSpeaker to eagerly load TTS engine

      Parameters

      • config: SpeakConfig

        Configuration object with backend, IBM settings, and Sherpa settings

      Returns Promise<void>

    • Synthesize text to speech and play the audio. Lazily initializes the TTS engine on first call.

      Parameters

      • text: string

        The text to speak

      Returns Promise<void>