Repository navigation
Voice agent send voice language locale from the client - #325931
Merged
Megan Rogge (meganrogge) merged 6 commits intoJul 16, 2026
Merged
Megan Rogge (meganrogge) merged 6 commits into
Megan Rogge (meganrogge) merged 6 commits into
Conversation
added 2 commits
July 15, 2026 10:53
Send a required resolved BCP-47 display locale when starting or resuming Voice Mode, and push live language configuration updates without changing the selected voice. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 86a4d71c-0221-42f1-ae95-7ebcc07058ba
Validate canonical locale bases against the backend allowlist and fall back to en-US for unsupported configured or browser locales. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 86a4d71c-0221-42f1-ae95-7ebcc07058ba
Contributor
There was a problem hiding this comment.
Pull request overview
Adds client-controlled locale selection for Voice Mode and synchronizes it with voice backend sessions.
Changes:
- Registers
agents.voice.languagewith automatic locale detection. - Canonicalizes supported locales and sends them on session start, resume, and live updates.
- Expands voice client tests for locale behavior.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
agentsVoice.contribution.ts |
Registers the language setting. |
voiceClientService.ts (browser) |
Resolves and sends locales. |
voiceSessionController.ts |
Ensures session contexts have a locale. |
voiceClientService.ts (common) |
Requires display_locale. |
voiceClientService.test.ts |
Tests locale serialization and updates. |
added 3 commits
July 15, 2026 11:53
Present Automatic and each supported backend language through the standard Settings enum control. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 86a4d71c-0221-42f1-ae95-7ebcc07058ba
Track session initialization per WebSocket so pre-session language changes are carried by start or resume instead of sent as live updates. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 86a4d71c-0221-42f1-ae95-7ebcc07058ba
Keep the broader ASR locale allowlist for Automatic while restricting explicit selections to languages with native MAI Voice 2 output. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 86a4d71c-0221-42f1-ae95-7ebcc07058ba
Mir (mirimadahmed)
force-pushed
the
mirimadahmed-microsoft-send-voice-language-locale
branch
from
July 16, 2026 10:11
529a538 to
bc62a1e
Compare
Megan Rogge (meganrogge)
previously approved these changes
Jul 16, 2026
Megan Rogge (meganrogge)
enabled auto-merge (squash)
July 16, 2026 17:54
roblourens
previously approved these changes
Jul 16, 2026
Connor Peet (connor4312)
previously approved these changes
Jul 16, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 86a4d71c-0221-42f1-ae95-7ebcc07058ba
auto-merge was automatically disabled
July 16, 2026 18:41
Head branch was pushed to by a user without write access
Mir (mirimadahmed)
dismissed stale reviews from Connor Peet (connor4312), roblourens, and Megan Rogge (meganrogge)
via
July 16, 2026 18:41
1376351
Megan Rogge (meganrogge)
enabled auto-merge (squash)
July 16, 2026 19:23
Ben Villalobos (benvillalobos)
approved these changes
Jul 16, 2026
Paul (pwang347)
approved these changes
Jul 16, 2026
Henning Dieterichs (hediet)
approved these changes
Jul 16, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
Voice Code now pins ASR to the client-controlled session language. This change:
agents.voice.languagesetting, defaulting toautostart_sessionandresume_session{ type: 'set_language', language: '<locale>' }when the setting changes during an active sessionen-USfor invalid or unsupported valuesDisconnected language changes are applied on the next start or resume.
Validation
npm run typecheck-clientVoiceClientServicetests: 8 passingnpm run valid-layers-checknpm run precommit