hey guys we meet a problem when using with backgro...
# agents
b
hey guys we meet a problem when using with background audio where : asynchronous generator is already running however we have a very simple code with audio background so we don't know where it breaks :
Copy code
background_audio = BackgroundAudioPlayer(
        thinking_sound=[
            AudioConfig("/home/ubuntu/agent_tel/Breath_inV2_2.wav", volume=1),
            AudioConfig("/home/ubuntu/agent_tel/Breath_inV2.wav", volume=1),
          ],
        )  
        await background_audio.start(room=ctx.room, agent_session=session)
r
What do you mean by
...asynchronous generator is already running
?
b
Sporadically seeing "Error in _play_task" from Background Audio player · Issue #3606 · livekit/agents Hi @refined-appointment-81829 This is the error we are meeting there was an update for 1.2.14 (#2814) livekit-agents, but it did no entirely fix the issue and we are still facing the same problem. it does not affect the speed of the agent's response, but background audio alowed to win a bit of latency on perceived response :)