mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #20534] [MERGED] fix: correct empty STT_ENGINE handling and improve TTS error response #48709
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/20534
Author: @silentoplayz
Created: 1/10/2026
Status: ✅ Merged
Merged: 1/10/2026
Merged by: @tjbck
Base:
dev← Head:fix/stt-tts-empty-engine-checks📝 Commits (1)
1fcf575fix: correct empty STT_ENGINE handling and improve TTS error response📊 Changes
1 file changed (+2 additions, -8 deletions)
View changed files
📝
backend/open_webui/routers/audio.py(+2 -8)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.
This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR.
Before submitting, make sure you've checked the following:
devbranch. Not targeting thedevbranch will lead to immediate closure of the PR.Changelog Entry
Description
STT_ENGINEandTTS_ENGINEconfiguration values. An empty string forSTT_ENGINEmeans "use local Whisper" (the default), not "not configured." This fix removes the blocking check on the STT/transcriptionsendpoint and changes the TTS/speechendpoint error from 403 to 404 for proper semantic meaning.Fixed
/transcriptionsendpoint that blocked requests whenSTT_ENGINE=""(local whisper)/speechendpoint error response from403to404whenTTS_ENGINE=""(service not configured)Additional Information
STT_ENGINE=""is the default value representing local Whisper engineSTT_ENGINE==""checks in the code are correct logic for handling local whisper transcriptionTTS_ENGINE=""indicates no TTS service is configured, so404(not found) is more appropriate than403(forbidden)Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.