Files
open-webui-ai4me/backend/open_webui/routers
Alvin Tangandgambletan 7aa7bbc390 fix: correct Azure TTS locale extraction for SSML xml:lang (#22443)
The locale for Azure TTS SSML was being extracted with `split("-")[:1]`,
which only takes the first segment (e.g., "en" from "en-US"). The
xml:lang attribute in SSML requires a full locale like "en-US", not just
a language code. This caused Azure TTS to either fail or use incorrect
pronunciation rules.

Changed `[:1]` to `[:2]` to properly extract the locale (e.g., "en-US").

Co-authored-by: gambletan <ethanchang32@gmail.com>
2026-03-08 16:50:25 -05:00
..
2026-03-01 13:34:09 -06:00
2026-02-22 17:51:03 -06:00
2026-02-27 16:03:43 -06:00
2026-01-09 20:44:31 +04:00
2026-03-01 13:49:36 -06:00
2026-03-07 20:14:32 -06:00
2026-02-11 16:24:11 -06:00
2026-02-11 16:24:11 -06:00
2026-02-22 18:55:24 -06:00
2026-03-01 13:20:55 -06:00
2026-02-11 15:55:23 -06:00
2026-02-25 15:15:59 -06:00
2026-02-25 15:15:59 -06:00
2026-02-21 15:35:34 -06:00
2026-02-25 15:15:59 -06:00
2026-03-06 20:12:37 -06:00
2026-03-06 14:10:50 -06:00
2026-02-11 16:24:11 -06:00
2026-03-02 17:04:52 -06:00
2026-03-08 16:40:20 -05:00
2026-02-23 15:49:05 -06:00
2026-02-11 16:24:11 -06:00