Wactorz JS
    Preparing search index...

    Class TTSManager

    Index

    Constructors

    Accessors

    Methods

    • Call with the user's outgoing message text. If it contains a speech request, the next reply will be spoken once even if the TTS toggle is off.

      Parameters

      • text: string

      Returns void

    • Probe the server for edge-tts availability and load the voice list. Falls back to browser voices if the server has none. Call once after the page loads — non-blocking.

      Returns Promise<void>

    • Call on incoming agent message. Beeps and/or speaks depending on settings.

      Parameters

      • text: string
      • Optional_from: string

      Returns void