From c0c5dac5310e9647b440ccb8e091ef96bc94c96c Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Tue, 28 Jul 2026 10:49:08 -0700 Subject: [PATCH] fix: stdin=DEVNULL + windows_hide_flags on STT transcode subprocess (guard test) --- tools/transcription_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/transcription_tools.py b/tools/transcription_tools.py index 810cbbed6ac..500f521df3d 100644 --- a/tools/transcription_tools.py +++ b/tools/transcription_tools.py @@ -235,7 +235,7 @@ def _transcode_audio_for_stt(file_path: str, work_dir: str) -> tuple[Optional[st converted_path, ] try: - subprocess.run(command, check=True, capture_output=True, text=True, encoding="utf-8", errors="replace", timeout=120) + subprocess.run(command, check=True, capture_output=True, text=True, encoding="utf-8", errors="replace", timeout=120, stdin=subprocess.DEVNULL, creationflags=windows_hide_flags()) return converted_path, None except subprocess.CalledProcessError as exc: details = exc.stderr.strip() or exc.stdout.strip() or str(exc)