feat(tts): pause mpv when using --wait flag

This commit is contained in:
mitchell 2026-04-30 15:48:48 -04:00
parent aecb3a6c10
commit a9d3db5b94

2
tts.ts
View file

@ -90,7 +90,7 @@ if (which("sox")) {
} }
await Bun.spawn({ await Bun.spawn({
cmd: ["mpv", "output.wav"], cmd: ["mpv", "--pause", "output.wav"],
cwd, cwd,
stdin: "ignore", stdin: "ignore",
stdout: "inherit", stdout: "inherit",