From 5776cadd14ab4eaba31ac2ebf82e240e80614d69 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 4 Apr 2021 11:36:42 -0400 Subject: [PATCH] Save folder in dec-talk folder --- commands/voice/dec-talk.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/voice/dec-talk.js b/commands/voice/dec-talk.js index f93e692c..d272e5a7 100644 --- a/commands/voice/dec-talk.js +++ b/commands/voice/dec-talk.js @@ -69,9 +69,9 @@ module.exports = class DECTalkCommand extends Command { } async tts(id, input) { - const inputFile = path.join(__dirname, '..', '..', 'tmp', `${id}.txt`); + const inputFile = path.join(__dirname, '..', '..', 'tmp', 'dec-talk', `${id}.txt`); await writeFile(inputFile, input); - const outputFile = path.join(__dirname, '..', '..', 'tmp', `${id}.wav`); + const outputFile = path.join(__dirname, '..', '..', 'tmp', 'dec-talk', `${id}.wav`); await execAsync(`xvfb-run wine say.exe -pre "[:phoneme on]" -w ${outputFile} < ${inputFile}`, { cwd: path.join(__dirname, '..', '..', 'dectalk'), timeout: 30000