Skip to content

Respect display language for automatic voice locale - #329016

Draft
meganrogge wants to merge 4 commits into
microsoft:mainfrom
meganrogge:merogge/dictation-display-language
Draft

Respect display language for automatic voice locale#329016
meganrogge wants to merge 4 commits into
microsoft:mainfrom
meganrogge:merogge/dictation-display-language

Conversation

@meganrogge

@meganrogge meganrogge commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Fixes #328854

Automatic voice and dictation language selection now follows VS Code's configured display language instead of relying only on the browser or system locale.

  • Prefer the configured display language for automatic Dictation language resolution, including English, with browser/system locale and model detection fallback for unsupported languages.
  • Apply the same display-language-first behavior to Voice Mode automatic language selection.
  • Preserve explicit agents.voice.language precedence.
  • Update the Voice Mode and Nemotron Dictation setting descriptions to document the precedence.
  • Add focused coverage for display-language, browser-locale fallback, explicit English, and explicit setting selection.

Includes the changes from #329018.

Fixes microsoft#328854

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

Copilot-Session: b11adb7d-72c1-4e64-ba1e-f798dd9bf490
Copilot AI balanced review requested due to automatic review settings August 4, 2026 18:11
@meganrogge meganrogge self-assigned this Aug 4, 2026
@meganrogge meganrogge added this to the 1.133.0 milestone Aug 4, 2026
@meganrogge
meganrogge enabled auto-merge (squash) August 4, 2026 18:12

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.

Pull request overview

Updates automatic on-device dictation to follow VS Code’s display language rather than the browser locale.

Changes:

  • Uses Language.value() when resolving automatic dictation language.
  • Renames resolver terminology from browser to display language.
  • Updates resolver tests for display-language and explicit-setting behavior.
Show a summary per file
File Description
chatSpeechToTextService.ts Supplies the active VS Code display language to dictation.
dictationLanguage.ts Updates resolver naming and documentation.
chatSpeechToTextService.test.ts Adjusts language-resolution regression cases.

Review details

  • Files reviewed: 3/3 changed files
  • Comments generated: 2
  • Review effort level: Balanced

Comment thread src/vs/workbench/contrib/chat/test/browser/chatSpeechToTextService.test.ts Outdated
Comment thread src/vs/workbench/contrib/chat/browser/speechToText/dictationLanguage.ts Outdated
@meganrogge
meganrogge marked this pull request as draft August 4, 2026 18:16
auto-merge was automatically disabled August 4, 2026 18:16

Pull request was converted to draft

Copilot AI and others added 2 commits August 4, 2026 18:23
Co-authored-by: meganrogge <29464607+meganrogge@users.noreply.github.com>
Preserve configured English display-language precedence while integrating Voice Mode, fallback, documentation, and test updates.

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

Copilot-Session: b11adb7d-72c1-4e64-ba1e-f798dd9bf490
@meganrogge meganrogge changed the title Use VS Code display language for automatic dictation Respect display language for automatic voice locale Aug 4, 2026
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.

nemotron-3.5-asr-streaming-0.6b should follow VS Code configured language

3 participants