Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tools/tts_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,7 @@ def _terminate_command_tts_process_tree(proc: subprocess.Popen) -> None:
stderr=subprocess.DEVNULL,
timeout=5,
stdin=subprocess.DEVNULL,
creationflags=windows_hide_flags(),
)
except Exception:
proc.kill()
Expand Down Expand Up @@ -2012,7 +2013,7 @@ def _generate_neutts(text: str, output_path: str, tts_config: Dict[str, Any]) ->
"--device", device,
]

result = subprocess.run(cmd, capture_output=True, text=True, timeout=120, stdin=subprocess.DEVNULL)
result = subprocess.run(cmd, capture_output=True, text=True, timeout=120, stdin=subprocess.DEVNULL, creationflags=windows_hide_flags())
if result.returncode != 0:
stderr = result.stderr.strip()
# Filter out the "OK:" line from stderr
Expand Down Expand Up @@ -2096,6 +2097,7 @@ def _resolve_piper_voice_path(voice: str, download_dir: Path) -> str:
"--download-dir", str(download_dir)],
capture_output=True, text=True, timeout=300,
stdin=subprocess.DEVNULL,
creationflags=windows_hide_flags(),
)
except subprocess.TimeoutExpired as exc:
raise RuntimeError(
Expand Down
Loading