Highlights
- Control barge-in via config. New
AgentConfig.allow_interruptions (default True, so existing behavior is unchanged). Set it to False to disallow barge-in while the bot is speaking.
- Implemented with Pipecat's
AlwaysUserMuteStrategy: the user's mic is muted while the bot speaks, so captured audio is dropped before it reaches STT (cascade brains) or the realtime LLM (speech-to-speech brains). Neither can be interrupted mid-utterance, and the user is heard again the moment the bot stops.
Usage
config = openlily.AgentConfig(
brain="cartesia_openai",
allow_interruptions=False, # disallow barge-in while the bot speaks
)
Install
pip install 'openlily @ git+https://github.com/getlark/openlily.git@v0.5.0#subdirectory=server'