From 2828e321bcd6db8ee515a55731f56e912027d524 Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Sat, 11 Oct 2025 19:38:07 +0800 Subject: [PATCH] Fix: remove lang for autio. (#10496) ### What problem does this PR solve? ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- rag/flow/parser/parser.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/rag/flow/parser/parser.py b/rag/flow/parser/parser.py index 004d4bc91..86e039118 100644 --- a/rag/flow/parser/parser.py +++ b/rag/flow/parser/parser.py @@ -184,8 +184,6 @@ class ParserParam(ProcessParamBase): audio_config = self.setups.get("audio", "") if audio_config: self.check_empty(audio_config.get("llm_id"), "Audio VLM") - audio_language = audio_config.get("lang", "") - self.check_empty(audio_language, "Language") email_config = self.setups.get("email", "") if email_config: @@ -348,15 +346,13 @@ class Parser(ProcessBase): conf = self._param.setups["audio"] self.set_output("output_format", conf["output_format"]) - - lang = conf["lang"] _, ext = os.path.splitext(name) with tempfile.NamedTemporaryFile(suffix=ext) as tmpf: tmpf.write(blob) tmpf.flush() tmp_path = os.path.abspath(tmpf.name) - seq2txt_mdl = LLMBundle(self._canvas.get_tenant_id(), LLMType.SPEECH2TEXT, lang=lang) + seq2txt_mdl = LLMBundle(self._canvas.get_tenant_id(), LLMType.SPEECH2TEXT) txt = seq2txt_mdl.transcription(tmp_path) self.set_output("text", txt)