Compare commits
No commits in common. "7b173c68f5a5df22930d3efb903a15eb3dd4d6c2" and "159547e79958ba11a604418e44de9fa7ef0861a7" have entirely different histories.
7b173c68f5
...
159547e799
1 changed files with 3 additions and 11 deletions
14
src/tts.ts
14
src/tts.ts
|
|
@ -62,14 +62,6 @@ 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");
|
||||
|
|
@ -98,7 +90,7 @@ async function main() {
|
|||
cwd,
|
||||
input,
|
||||
stdout: "pipe",
|
||||
stderr: firstRun ? "inherit" : "ignore",
|
||||
stderr: "inherit",
|
||||
})`uv run -- python -u main.py`;
|
||||
|
||||
if (!waitAndCombine) {
|
||||
|
|
@ -147,7 +139,7 @@ async function main() {
|
|||
stdin: "ignore",
|
||||
stdout: "inherit",
|
||||
stderr: "inherit",
|
||||
})`mpv ${pausePlayer ? ["--pause"] : []} ${file}`;
|
||||
})`mpv${pausePlayer ? " --pause" : ""} ${file}`;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -182,7 +174,7 @@ async function main() {
|
|||
stdin: "ignore",
|
||||
stdout: "inherit",
|
||||
stderr: "inherit",
|
||||
})`mpv ${pausePlayer ? ["--pause"] : []} output.wav`;
|
||||
})`mpv${pausePlayer ? " --pause" : ""} output.wav`;
|
||||
}
|
||||
|
||||
main().catch(handleTopLevel);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue