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

    Class SpeakerController

    Speaker controller for TJBot Handles audio playback and text-to-speech synthesis

    Index

    Constructors

    Methods

    • Initialize the speaker with configuration

      Parameters

      • Optionaldevice: string

        Optional specific audio device to use (auto-detected if not specified)

      Returns void

    • Play audio from a file

      Parameters

      • audioPath: string

        Path to the audio file to play

      Returns Promise<void>

    • Set callbacks for pause/resume (typically to pause/resume microphone)

      Parameters

      • OptionalonPause: () => void

        Callback when audio playback starts

      • OptionalonResume: () => void

        Callback when audio playback ends

      Returns void