diff --git a/assignment/README.md b/assignment/README.md new file mode 100644 index 0000000000..59e932984f --- /dev/null +++ b/assignment/README.md @@ -0,0 +1,179 @@ + + +
+This project implements a context-aware interruption handling system for a real-time voice AI agent using the LiveKit framework. +
+ ++Traditional voice agents incorrectly treat small acknowledgements like "yeah", "ok" as interruptions. +This system intelligently distinguishes between passive acknowledgements and active interruptions. +
+ +Goal: Build a system that understands user intent and reacts correctly.
+ ++User Voice โ VAD โ STT โ classify_input() โ Decision โ Agent Action ++ +
+voice_agent/ +โ +โโโ main.py +โโโ interrupt_handler.py +โโโ state_manager.py +โโโ transcript_handler.py +โโโ .env ++ +
Role: Main controller of the system
+ +--- + +Core decision-making logic:
+ ++classify_input(text, is_agent_speaking) ++ +
Returns:
+is_agent_speakingInput: "yeah okay hmm"
+Result: Agent continues speaking (IGNORE)
+ +--- + +Input: "yeah" (when silent)
+Result: Agent responds normally (RESPOND)
+ +--- + +Input: "no stop"
+Result: Agent stops immediately (INTERRUPT)
+ +--- + +Input: "yeah okay but wait"
+Result: Agent stops (INTERRUPT)
+ ++pip install -e . +pip install -r requirements.txt +python main.py console ++ +
+yeah okay hmm โ IGNORE +no stop โ INTERRUPT +yeah โ RESPOND +hello โ RESPOND ++ +
+๐ Add your demo video link here +
+ ++This system successfully implements a state-aware intelligent interruption handler that improves conversational flow and mimics human-like interaction. +
+ +Aditya Kumar
+ +