Files
TanishqandHarry a06a43dd6c fix(webui): read the voice sample in the voice's language, so English voices play in the Chinese WebUI
The Voice Sample button gave every Edge voice the "Voice Example"
sentence of the WebUI language. Edge returns no audio when a voice gets
text that it cannot read, so with the WebUI in Chinese the sample of an
English, Portuguese, German or Arabic voice failed three times and the
page showed that the TTS service returned no preview audio. The Korean
and Russian WebUIs failed the same way with en-US-JennyNeural. Before
af0069a the button tried again with an English sentence after such a
failure.

Edge and Azure voice names start with their locale. The sample is now
the "Voice Example" of the WebUI language with that language code, or
the English one when no WebUI language has it. Voices of other
providers keep the sample of the WebUI language.
2026-11-13 14:42:43 +08:00
..