Skip to content

Voice: warm capture before hands-free playback - #328225

Merged
Megan Rogge (meganrogge) merged 6 commits into
microsoft:mainfrom
mirimadahmed:mirimadahmed-microsoft-fix-barge-in-capture-onset
Jul 31, 2026
Merged

Voice: warm capture before hands-free playback#328225
Megan Rogge (meganrogge) merged 6 commits into
microsoft:mainfrom
mirimadahmed:mirimadahmed-microsoft-fix-barge-in-capture-onset

Conversation

@mirimadahmed

@mirimadahmed Mir (mirimadahmed) commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 15eb9602-6daa-4c99-8455-0a20804e569a
Copilot AI review requested due to automatic review settings July 30, 2026 15:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Not ready to approve

Capture setup errors can be swallowed, and permission failures produce duplicate notifications.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Pull request overview

Warms hands-free microphone capture before backend session initialization and improves reconnect and speech-turn handling.

Changes:

  • Adds cancellable, shared microphone acquisition and smaller VAD-aligned chunks.
  • Preserves reconnect intent and speech-start turn IDs.
  • Expands voice lifecycle tests.
File summaries
File Description
voiceSessionController.test.ts Tests warm-up, retries, timeouts, and speech interruption.
voiceClientService.test.ts Tests turn IDs and reconnect state.
micCaptureService.test.ts Verifies capture chunk duration.
common/voiceClient/voiceClientService.ts Extends voice event and reconnect contracts.
voiceSessionController.ts Adds pre-session microphone warm-up and reconnect handling.
voiceClientService.ts Exposes reconnect scheduling and speech turn IDs.
micCaptureService.ts Adds acquisition coordination, cleanup, and smaller chunks.
Review details
  • Files reviewed: 7/7 changed files
  • Comments generated: 2
  • Review effort level: Medium

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

@meganrogge Megan Rogge (meganrogge) added this to the 1.132.0 milestone Jul 30, 2026
Mir Imad Ahmed and others added 2 commits July 30, 2026 16:31
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@meganrogge

Copy link
Copy Markdown
Collaborator

Copilot resolve the merge conflicts in this pull request

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 1f93d2f2-660e-46e9-a869-98ce147905f9
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 1f93d2f2-660e-46e9-a869-98ce147905f9
@meganrogge
Megan Rogge (meganrogge) enabled auto-merge (squash) July 31, 2026 15:55
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: d5f00f75-49d2-4b4f-a503-050b7b6a2f57
@meganrogge
Megan Rogge (meganrogge) merged commit e483bc5 into microsoft:main Jul 31, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants