agents icon indicating copy to clipboard operation
agents copied to clipboard

Agent starts speaking earlier, in prejoin screen

Open hari01584 opened this issue 1 year ago • 2 comments

Not sure if this is relevant to agents or components library, but let's say I have a command like await agent.say("") in entrypoint of agent, even then if someone joins the meet through prejoin screen, our agent speaks before they can join in the room

essentially what happen then, is when user joins the agent start speaking from middle of sentence (as it has already spoke first parts when user was in prejoin)

Any way to mitigate this?

hari01584 avatar Oct 07 '24 19:10 hari01584

on the prejoin screen, is your app connecting to a room?

the purpose of a prejoin screen is so that user could adjust settings before connecting to the room, so during that time no agent would be dispatched

davidzhao avatar Oct 15 '24 05:10 davidzhao

essentially what happen then, is when user joins the agent start speaking from middle of sentence (as it has already spoke first parts when user was in prejoin)

Any way to mitigate this?

I believe the default scheduler activates whenever the first participant connects to the room. If you need a little more latency, you could always insert a sleep or wait for the client to send a message over a data channel before the agent.say call.

jezell avatar Oct 26 '24 06:10 jezell