Optional options: BackgroundAudioPlayerOptionsStart the background audio system, publishing the audio track and beginning playback of any configured ambient sound.
If ambientSound is provided (and contains file paths), they will loop
automatically. If ambientSound contains AsyncIterators, they are assumed
to be already infinite or looped.
Options for starting background audio playback
Manages background audio playback for LiveKit agent sessions
This class handles playing ambient sounds and manages audio track publishing. It supports:
Note: Thinking sound not yet supported
Example