diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..cc4e5e3 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "terminal.integrated.env.windows": { + "PATH": "${env:PATH};C:\\Program Files\\Docker\\Docker\\resources\\bin" + } +} diff --git a/src/services/melo-tts.ts b/src/services/melo-tts.ts index bc3dcb1..5cb4c05 100644 --- a/src/services/melo-tts.ts +++ b/src/services/melo-tts.ts @@ -13,7 +13,7 @@ async function run(command: string, args: string[], stdio: "ignore" | "inherit" const child = spawn(command, args, { stdio: ["ignore", stdio, "inherit"], windowsHide: true, - shell: process.platform === "win32", + shell: process.platform === "win32" && !path.isAbsolute(command), }); child.on("error", (error) => { diff --git a/src/setup-tts.ts b/src/setup-tts.ts index c979aa8..9a73363 100644 --- a/src/setup-tts.ts +++ b/src/setup-tts.ts @@ -14,7 +14,7 @@ async function run(command: string, args: string[], cwd = process.cwd()): Promis cwd, stdio: "inherit", windowsHide: true, - shell: process.platform === "win32", + shell: process.platform === "win32" && !path.isAbsolute(command), }); child.on("error", (error) => {