Bug: speechSynthesis.getVoices() ignores speech.voices on Windows profiles
Environment
- ShardX engine Chrome 157, Python SDK 2.1.6. Also reproduced in the Launcher (profile created from the UI).
- Host: Windows 11 Pro.
Problem
On Windows profiles, speechSynthesis.getVoices() returns only the 19 Google network voices (localService: false) and the default voice is "Google Deutsch". The profile's fingerprint.json has 22–26 Microsoft voices in speech.voices (for example "Microsoft David - English (United States)", "Microsoft Mark…", "Microsoft James - English (Australia)"), all with local_service: true and one with is_default: true. None of them reach the page.
The host's own voices are hidden correctly. The host has SAPI voices David, Zira and Irina (ru-RU) plus 5 OneCore voices, and none of them leak. The fingerprint voices are not substituted in their place, so the page sees no local voices at all.
Steps to reproduce
- Create a Windows profile. Both
sdk.create_profile(platform="Windows")and a new Windows profile in the Launcher reproduce it. - Open any https page, for example https://example.com/.
- Run:
speechSynthesis.getVoices(); // first call triggers loading setTimeout(() => { const v = speechSynthesis.getVoices(); console.log(v.length, v.filter(x => x.localService).length, (v.find(x => x.default) || {}).name); }, 3000);
Results (getVoices() after 3 s)
| Browser / profile | Voices | Local | Default |
|---|---|---|---|
| Stock Chrome 157 on the same host, headless and windowed | 24 | 5 (Microsoft) | Microsoft David |
| ShardX Windows profile, SDK, 1st/2nd/3rd launch of the same profile | 19 | 0 | Google Deutsch |
| ShardX Windows profile, Launcher, 1st and 2nd launch | 19 | 0 | Google Deutsch |
| ShardX macOS profile | 201 | 182 | Samantha (correct) |
ShardX Android profile (no speech key) |
63 | 63 | — |
Relaunching the same profile does not help: I got the same result on every launch, in both the SDK and the Launcher. Reloading the page or opening another page in the same session doesn't change it either.
Expected
getVoices() returns the voices from speech.voices: Microsoft voices with localService: true and the default taken from is_default. Google network voices follow, as on a real Windows Chrome. This already works for macOS profiles.
Why it matters
Anti-fraud collectors read this list. For example, Shopee's sfu-latest.*.js calls speechSynthesis.getVoices(). A Windows Chrome with zero local voices and "Google Deutsch" as the default does not match any real Windows machine, so every Windows profile stands out the same way.
in v2.1.6