From 750604a11d4adcb5ae568b9fc93010031ad394f9 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 1 Jun 2026 13:43:05 -0700 Subject: [PATCH] refac --- backend/open_webui/routers/audio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/routers/audio.py b/backend/open_webui/routers/audio.py index bf4c16acb9..aaa27e8785 100644 --- a/backend/open_webui/routers/audio.py +++ b/backend/open_webui/routers/audio.py @@ -462,7 +462,7 @@ async def _tts_azure(request, payload, file_path, file_body_path, user): """Generate speech via Azure Cognitive Services TTS.""" az_region = request.app.state.config.TTS_AZURE_SPEECH_REGION or 'eastus' az_base = request.app.state.config.TTS_AZURE_SPEECH_BASE_URL - language = request.app.state.config.TTS_VOICE + language = payload.get('voice') or request.app.state.config.TTS_VOICE locale = '-'.join(language.split('-')[:2]) output_format = request.app.state.config.TTS_AZURE_SPEECH_OUTPUT_FORMAT