Add language auto-detection

* adds langdetect as requirement for colab, standalone and textgen
* adds "auto" to the language dropdown in the Advanced Engine/Model Settings panel
* replace the hardcoded "en" by "auto" when called by the OpenAI compatible Speech API
This commit is contained in:
Ilyas committed 2025-01-04 00:38:52 +01:00
1 parent 5ce8a6681e
commit ecb15200dc
5 files changed
+28 -2

No files matched your search

+1
View File
@@ -3309,6 +3309,7 @@ if gradio_enabled is True:
gen_lang = gr.Dropdown(
value=config.api_def.api_language,
choices=[
"auto",
"ar",
"zh",
"cs",