mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
fix: stdin=DEVNULL + windows_hide_flags on STT transcode subprocess (guard test)
This commit is contained in:
parent
d66ec2f5f4
commit
c0c5dac531
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue