ShardBrowser icon indicating copy to clipboard operation
ShardBrowser copied to clipboard

All 120 bundled `win-*` presets ship Russian SAPI voices (`Microsoft Irina` as default) regardless of the profile language

Open Nbparts opened this issue 2 months ago • 2 comments

Environment: ShardX Launcher 2.0.3 (engine 152.0.7977.65), fingerprint library as downloaded by the launcher (ShardX-Fingerprints.zip). Same result in the library on a Windows 11 host and on a macOS arm64 host.

What happens

Every one of the 120 win-* presets has the same speech.voices block: two local SAPI voices

Microsoft Irina - Russian (Russia)   ru-RU   local_service: true   is_default: true
Microsoft Pavel - Russian (Russia)   ru-RU   local_service: true   is_default: false

followed by the 19 Google network voices. The launcher resolves timezone / navigator.language / accept_language / icu_locale at launch (resolve_auto_fields in launch.rs) or takes the language picked in the editor, but it never touches speech.voices, so the block reaches the page exactly as the preset has it.

Since #50 the profile's list does reach the page, so this is what a page gets. Measured in a live profile on a Windows 11 host, created from an unedited win-* preset with Language = English (US):

navigator.languages                       // ["en-US", "en"]
Intl.DateTimeFormat().resolvedOptions().locale  // "en-US"
speechSynthesis.getVoices().filter(v => v.default).map(v => v.name)
                                          // ["Microsoft Irina - Russian (Russia)"]

A Windows install only has the SAPI voices of its installed language packs, so "en-US everything + Russian default voice" reads as a Russian Windows behind an English browser, and it is identical in every Windows profile made from the bundled library. The mac-* presets are fine (default Samantha).

Expected

Local voices that agree with the profile language, e.g. for en-US:

Microsoft David - English (United States)   en-US   default
Microsoft Mark - English (United States)    en-US
Microsoft Zira - English (United States)    en-US

Ideally derived at launch from the resolved language the same way accept_language is; at minimum the bundled presets should not all carry ru-RU voices.

Workaround I use

Replace the two ru-RU entries with the three en-US ones in every win-*.json (keeping the Google voices, is_default only on David). Verified in a live profile: the page then sees 22 voices with David as default.

Side note: the GUI reads the library once per app run (fingerprintList() in useProfile), so presets edited on disk are only picked up by New profile after the launcher is fully quit from the tray and restarted. POST /profiles/temporary reads from disk and sees the change immediately.

Nbparts avatar Sep 21 '26 13:09 Nbparts

in 2.1.0

Kr1tos avatar Oct 22 '26 11:10 Kr1tos

Still present in the template in 2.1.4 (GET /fingerprint/new/Windows keeps is_default: true on Microsoft Irina). The runtime substitution itself works — an en-US profile reports Microsoft David as default with no ru-RU entries — so this is now only the template/editor value. Filed with two other generator leftovers in #147.

ZC-eto avatar Nov 06 '26 22:11 ZC-eto