Fix the transcripcion language used by default whisper, setting as WHISPER_LANGUAGE if it is setted in env var, even if a language is detected in the file's metadata.
It is understood that if a language is set as an environment variable for transcriptions, this should be the preferred one and the one that should be used for that purpose.
It would be advisable to add this variable as configurable in UI
Changed
Logic for select transcription language
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.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/15935
**Author:** [@rgaricano](https://github.com/rgaricano)
**Created:** 7/22/2025
**Status:** ✅ Merged
**Merged:** 7/23/2025
**Merged by:** [@tjbck](https://github.com/tjbck)
**Base:** `dev` ← **Head:** `dev_FIX-transcription_language`
---
### 📝 Commits (3)
- [`0613563`](https://github.com/open-webui/open-webui/commit/06135636445a01e55e0c25dd5369adf0ec636812) FIX: STT default whisper trascription language
- [`51758c4`](https://github.com/open-webui/open-webui/commit/51758c429bcf27648792d6352d0d00f026060f0f) Update audio.py - fix FORMAT error
- [`ab8e54d`](https://github.com/open-webui/open-webui/commit/ab8e54dd29011e987a08347c309dd58aeb57c505) Update audio.py Fix Format error
### 📊 Changes
**1 file changed** (+5 additions, -1 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/open_webui/routers/audio.py` (+5 -1)
</details>
### 📄 Description
### Description:
### FIX: STT default whisper trascription language
Fix the transcripcion language used by default whisper, setting as WHISPER_LANGUAGE if it is setted in env var, even if a language is detected in the file's metadata.
It is understood that if a language is set as an environment variable for transcriptions, this should be the preferred one and the one that should be used for that purpose.
It would be advisable to add this variable as configurable in UI
### Changed
- Logic for select transcription language
_____
### Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/15935
Author: @rgaricano
Created: 7/22/2025
Status: ✅ Merged
Merged: 7/23/2025
Merged by: @tjbck
Base:
dev← Head:dev_FIX-transcription_language📝 Commits (3)
0613563FIX: STT default whisper trascription language51758c4Update audio.py - fix FORMAT errorab8e54dUpdate audio.py Fix Format error📊 Changes
1 file changed (+5 additions, -1 deletions)
View changed files
📝
backend/open_webui/routers/audio.py(+5 -1)📄 Description
Description:
FIX: STT default whisper trascription language
Fix the transcripcion language used by default whisper, setting as WHISPER_LANGUAGE if it is setted in env var, even if a language is detected in the file's metadata.
It is understood that if a language is set as an environment variable for transcriptions, this should be the preferred one and the one that should be used for that purpose.
It would be advisable to add this variable as configurable in UI
Changed
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.