mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[PR #11737] [CLOSED] Enhance OpenAI TTS Voice Parameter Handling #45833
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/11737
Author: @roeizavida
Created: 3/16/2025
Status: ❌ Closed
Base:
dev← Head:feat/tts-voice-json📝 Commits (1)
1c01213feat: support both string and JSON object formats for OpenAI TTS voice parameter📊 Changes
1 file changed (+15 additions, -1 deletions)
View changed files
📝
backend/open_webui/routers/audio.py(+15 -1)📄 Description
This pull request introduces support for both string and JSON object formats for the voice parameter in the OpenAI TTS implementation.
Previously, the system only accepted a simple string for the voice setting, which limited compatibility with services requiring more complex configurations, such as Vertex AI TTS using the LiteLLM proxy.
With this update, the code now attempts to parse the TTS_VOICE configuration value. If it can be successfully parsed as a JSON object, it will be used as such; otherwise, the original string value will be utilized.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.