mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
Added WHISPER_LANGUAGE env variable. If set to a country's ISO2, constrains Whisper's stt to that language. Detects language as normal if unset
This commit is contained in:
@@ -2510,6 +2510,11 @@ WHISPER_VAD_FILTER = PersistentConfig(
|
||||
os.getenv("WHISPER_VAD_FILTER", "False").lower() == "true",
|
||||
)
|
||||
|
||||
WHISPER_LANGUAGE = PersistentConfig(
|
||||
"WHISPER_LANGUAGE",
|
||||
"audio.stt.whisper_language",
|
||||
os.getenv("WHISPER_LANGUAGE", None).lower(),
|
||||
)
|
||||
|
||||
# Add Deepgram configuration
|
||||
DEEPGRAM_API_KEY = PersistentConfig(
|
||||
|
||||
Reference in New Issue
Block a user