mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #16038] [CLOSED] feat: support audio language selector for deepgram API, add fallback for both openai/deepgram #39642
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/16038
Author: @jfouret
Created: 7/26/2025
Status: ❌ Closed
Base:
dev← Head:feat/support_language_deepgram📝 Commits (3)
2f2066bAdd retry logic and language parameter handling for Deepgram APIfca54bcRefactor language selection logic in transcription handler31e3a51Implement language fallback for STT transcription requests📊 Changes
1 file changed (+47 additions, -29 deletions)
View changed files
📝
backend/open_webui/routers/audio.py(+47 -29)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
The language selector support mentioned in #13989 was not properly implemented for deepgram API.
Added
Additional Information
here the logs from my tests (test done on v0.6.18 within docker)
I juste updated the audio.py file in the backend repository
openAI:
Deepgram:
I tried with French and it works, below after transcription with deepgram nova-3 (multi).
This match the #13720 which was closed too fast.
Note that I did not find any test suite related to
audio.pyNote that local whisper does not raise any error when a randome string is given as language parameters, so I did not implement any fallback here. Azure logic seems different as we can submit several loavles already.
I tried to integrate comment from @rgaricano about #15935
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.