feat(tts): pause mpv when using --wait flag
This commit is contained in:
parent
aecb3a6c10
commit
a9d3db5b94
1 changed files with 1 additions and 1 deletions
2
tts.ts
2
tts.ts
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue