mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #22437] [CLOSED] fix: correct Azure TTS locale extraction for SSML xml:lang #26694
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/22437
Author: @alvinttang
Created: 3/8/2026
Status: ❌ Closed
Base:
dev← Head:fix/azure-tts-locale-truncation📝 Commits (1)
b2ee9dffix: correct Azure TTS locale extraction for SSML xml:lang📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
backend/open_webui/routers/audio.py(+1 -1)📄 Description
Description
split("-")[:1]only takes the first segment (e.g., "en" from "en-US"), producing an invalid SSMLxml:langattribute. Changed to[:2]to preserve the full locale (e.g., "en-US").Fixed
xml:langattribute instead of just the language code (e.g., "en")Additional Information
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.