can I play background music while there is no agent in the room? something like hold music?
t
tall-airline-16756
11/04/2025, 6:21 AM
It sounds like you want “hold music” even when no agent is present. That’s possible, but you’ll need some participant to publish the audio into the room.
Options:
• Run a lightweight programmatic participant (backend service) that joins the room and publishes a looping audio track. Overview
• If you’re using Python Agents, spin up an agent that only publishes background audio via BackgroundAudioPlayer. Guide
• Implement a server-side publisher that reads an audio file and pushes frames as a raw audio track. How-to
Which route fits your setup (backend service or Python agent)? I can share the exact steps/code.
Sources: Processing raw media tracks | LiveKit docs | Realtime media | LiveKit Docs | Camera & microphone | LiveKit Docs | Worker lifecycle | LiveKit Docs | Agent speech and audio | LiveKit docs