[GH-ISSUE #5408] "language" parameter for openai stt #13974

Closed
opened 2026-04-19 20:29:43 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @Raigedas on GitHub (Sep 13, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/5408

Is your feature request related to a problem? Please describe.
when i use openai as an stt engine and i try to speak in english it kind of works but shows the text in random exotic languages instead of english.

Describe the solution you'd like
a way to set a specific language for the openai stt engine.
i see from openai api reference that in addition to the required field "model" it is possible to pass optional "language" field:
https://platform.openai.com/docs/api-reference/audio/createTranscription
in source code i found where stt config is being built:
https://github.com/open-webui/open-webui/blob/main/backend/open_webui/apps/audio/main.py
can we add an optional "language" parameter.

Additional context
https://github.com/open-webui/open-webui/blob/main/backend/open_webui/apps/audio/main.py
https://platform.openai.com/docs/api-reference/audio/createTranscription

Originally created by @Raigedas on GitHub (Sep 13, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/5408 **Is your feature request related to a problem? Please describe.** when i use openai as an stt engine and i try to speak in english it kind of works but shows the text in random exotic languages instead of english. **Describe the solution you'd like** a way to set a specific language for the openai stt engine. i see from openai api reference that in addition to the required field "model" it is possible to pass optional "language" field: https://platform.openai.com/docs/api-reference/audio/createTranscription in source code i found where stt config is being built: https://github.com/open-webui/open-webui/blob/main/backend/open_webui/apps/audio/main.py can we add an optional "language" parameter. **Additional context** https://github.com/open-webui/open-webui/blob/main/backend/open_webui/apps/audio/main.py https://platform.openai.com/docs/api-reference/audio/createTranscription
Author
Owner

@Raigedas commented on GitHub (Sep 14, 2024):

or i may be wrong... i hardcoded a different "language" field on my machine and i saw no effect in language detection... what helped is when i also added field "prompt":"english language". so, we may need not just one addition input "language" but two - "language" and "prompt".

<!-- gh-comment-id:2350887616 --> @Raigedas commented on GitHub (Sep 14, 2024): or i may be wrong... i hardcoded a different "language" field on my machine and i saw no effect in language detection... what helped is when i also added field "prompt":"english language". so, we may need not just one addition input "language" but two - "language" and "prompt".
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#13974