Skip to content

Localized voice previews for Voice Mode onboarding - #328259

Open
meganrogge wants to merge 2 commits into
mainfrom
megrogge/voice-onboarding-language-samples
Open

Localized voice previews for Voice Mode onboarding#328259
meganrogge wants to merge 2 commits into
mainfrom
megrogge/voice-onboarding-language-samples

Conversation

@meganrogge

Copy link
Copy Markdown
Collaborator

Fixes #328084

For the languages Voice Mode speaks natively (de, es, fr, it, ja, ko, pt, zh), the onboarding card now previews that language's single voice instead of the four English options — choosing between the English voices isn't meaningful in those locales. English and any locale without a native voice keep the four-voice chooser.

Behavior

  • 8 natively-spoken languages → a single localized voice (Marc, Maria, David, Eva, Aruha, Jiyon, Gil, Wuzhi) rendered as a preview button. No chooser, no persisted English voice; clicking just plays/stops the localized sample.
  • English / other locales → the existing 4-voice radiogroup (Maya/Victoria/Kevin/Daniel), which persists the chosen voice.

Language resolution mirrors the voice client: an explicit override, then agents.voice.language (unless auto), then the window language.

Notes

  • Each non-English language ships one voice sample (not four localized variants), which is why the card collapses to a single voice there.

Validation

  • Full client typecheck clean, ESLint clean.
  • All 15 unit tests pass, including a new table-driven test asserting option count, chooser presence, and the sample file per language.

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

For the languages Voice Mode speaks natively (de, es, fr, it, ja, ko, pt,
zh) the onboarding card now previews that language's single voice instead
of the four English options - choosing between the English voices is not
meaningful there. English and languages without a native voice keep the
four-voice chooser.

Fixes #328084

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 30, 2026 19:05
@meganrogge meganrogge self-assigned this Jul 30, 2026
@meganrogge meganrogge added this to the 1.132.0 milestone Jul 30, 2026
@meganrogge
meganrogge enabled auto-merge (squash) July 30, 2026 19:06

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

Adds locale-specific voice previews to Voice Mode onboarding.

Changes:

  • Shows one native voice for eight supported languages.
  • Retains the four-voice chooser for English and unsupported locales.
  • Adds table-driven locale/sample tests.
Show a summary per file
File Description
voiceModeOnboarding.ts Resolves spoken language and renders localized previews.
voiceModeOnboarding.test.ts Tests locale-specific option counts and samples.

Review details

  • Files reviewed: 2/10 changed files
  • Comments generated: 2
  • Review effort level: Medium

Comment thread src/vs/workbench/contrib/agentsVoice/browser/voiceModeOnboarding.ts Outdated
Co-authored-by: meganrogge <29464607+meganrogge@users.noreply.github.com>
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.

Provide proper language samples for voice mode onboarding card

5 participants