Compare commits

...

2 commits

Author SHA1 Message Date
7b173c68f5 chore(tts): suppress stderr output after initial setup 2026-08-18 21:30:37 -04:00
4c0e25ad33 fix(ttsc): pause flag 2026-07-31 20:05:04 -04:00

View file

@ -62,6 +62,14 @@ async function main() {
const home = os.homedir();
const cwd = path.join(home, ".ttsc");
const firstRun = await (async () => {
try {
await fs.access(cwd, fs.constants.F_OK);
return false;
} catch {
return true;
}
})();
if (editContent) {
const file = path.join(cwd, "input.txt");
@ -90,7 +98,7 @@ async function main() {
cwd,
input,
stdout: "pipe",
stderr: "inherit",
stderr: firstRun ? "inherit" : "ignore",
})`uv run -- python -u main.py`;
if (!waitAndCombine) {
@ -139,7 +147,7 @@ async function main() {
stdin: "ignore",
stdout: "inherit",
stderr: "inherit",
})`mpv${pausePlayer ? " --pause" : ""} ${file}`;
})`mpv ${pausePlayer ? ["--pause"] : []} ${file}`;
}
}
@ -174,7 +182,7 @@ async function main() {
stdin: "ignore",
stdout: "inherit",
stderr: "inherit",
})`mpv${pausePlayer ? " --pause" : ""} output.wav`;
})`mpv ${pausePlayer ? ["--pause"] : []} output.wav`;
}
main().catch(handleTopLevel);