Repository navigation
[WIP] Add intelligent voice interruption capability to Jeeva robot - #3
Merged
Merged
Conversation
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Copilot stopped work on behalf of
SathiyaSenpai due to an error
March 9, 2026 11:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.
Original prompt
Problem
The Jeeva companion robot currently lacks two critical capabilities that distinguish it from a dumb home speaker:
1. Intelligent Voice Interruption (Barge-In)
When the robot is speaking and a user interrupts, the robot should:
This requires:
SPEAKING → INTERRUPTED → LISTENING → THINKING → SPEAKING2. Multi-Speaker Voice Differentiation
The robot should know WHO is talking:
3. Truly Intelligent Companion Behavior
The robot must be intelligent in EVERY aspect — not just answering questions:
Proactive Intelligence:
Conversational Intelligence:
Social Intelligence:
Implementation Scope
This PR should add the following to the repository:
ESP32 Firmware Changes (
esp32/src/)voice_activity_detector.h— Real-time VAD on INMP441 I2S stream using energy + zero-crossing-rate, runs concurrently with audio playback. SendsBARGE_INinterrupt to Jetson via UART when speech detected during robot speaking state.speaker_tracker.h— Extracts basic voice features (fundamental frequency F0, spectral centroid, energy envelope) from audio frames on ESP32 for quick speaker-change detection. Sends raw audio chunks to Jetson for full speaker embedding computation.interrupt_state_machine.h— State machine managing:IDLE → WAKE_WORD_DETECTED → LISTENING → PROCESSING → SPEAKING → INTERRUPTED → LISTENING. Clean transitions with timeout handling.main.cpp— Integrate VAD, speaker tracking, and interrupt state machine into the main FreeRTOS loop with proper task priorities.config.h— Add configuration constants for VAD thresholds, barge-in sensitivity, speaker tracking parameters.Jetson Python Services (new
jetson/directory)jetson/speaker_recognition.py— Speaker embedding extraction usingresemblyzerorspeechbrain(runs on Jetson GPU). Speaker enrollment, identification, and diarization for up to 20 registered ...This pull request was created from Copilot chat.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.