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.
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
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".
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.
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
@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".